Class AlphaColor

java.lang.Object
net.minestom.server.color.Color
net.minestom.server.color.AlphaColor
All Implemented Interfaces:
ARGBLike, RGBLike

public final class AlphaColor extends Color implements ARGBLike
A general purpose class for representing colors.

Colors must be in the range of 0-255.

  • Field Details

  • Constructor Details

    • AlphaColor

      public AlphaColor(int alpha, int red, int green, int blue)
    • AlphaColor

      public AlphaColor(int argb)
      Creates an alpha color from an integer. This is done by reading each color component from the lowest order 32 bits of the integer, and creating a color from those components.
      Parameters:
      argb - the integer
    • AlphaColor

      public AlphaColor(int alpha, RGBLike rgbLike)
      Creates a color from an RGB-like color.
      Parameters:
      rgbLike - the color
  • Method Details