Enum Class AEColor

java.lang.Object
java.lang.Enum<AEColor>
appeng.api.util.AEColor
All Implemented Interfaces:
Serializable, Comparable<AEColor>, Constable, net.minecraft.util.StringRepresentable

public enum AEColor extends Enum<AEColor> implements net.minecraft.util.StringRepresentable
List of all colors supported by AE, their names, and various colors for display. Should be the same order as Dyes, excluding Transparent.
  • Enum Constant Details

    • WHITE

      public static final AEColor WHITE
    • ORANGE

      public static final AEColor ORANGE
    • MAGENTA

      public static final AEColor MAGENTA
    • LIGHT_BLUE

      public static final AEColor LIGHT_BLUE
    • YELLOW

      public static final AEColor YELLOW
    • LIME

      public static final AEColor LIME
    • PINK

      public static final AEColor PINK
    • GRAY

      public static final AEColor GRAY
    • LIGHT_GRAY

      public static final AEColor LIGHT_GRAY
    • CYAN

      public static final AEColor CYAN
    • PURPLE

      public static final AEColor PURPLE
    • BLUE

      public static final AEColor BLUE
    • BROWN

      public static final AEColor BROWN
    • GREEN

      public static final AEColor GREEN
    • RED

      public static final AEColor RED
    • BLACK

      public static final AEColor BLACK
    • TRANSPARENT

      public static final AEColor TRANSPARENT
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<AEColor> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf,AEColor> STREAM_CODEC
    • VALID_COLORS

      public static final List<AEColor> VALID_COLORS
    • TINTINDEX_DARK

      public static final int TINTINDEX_DARK
      The tint index that can normally be used to get the dark variant of the apprioriate AE color.
      See Also:
    • TINTINDEX_MEDIUM

      public static final int TINTINDEX_MEDIUM
      The tint index that can normally be used to get the medium variant of the apprioriate AE color.
      See Also:
    • TINTINDEX_BRIGHT

      public static final int TINTINDEX_BRIGHT
      The tint index that can normally be used to get the bright variant of the apprioriate AE color.
      See Also:
    • TINTINDEX_MEDIUM_BRIGHT

      public static final int TINTINDEX_MEDIUM_BRIGHT
      The tint index that can normally be used to get a color between the medium and bright variant of the apprioriate AE color.
      See Also:
    • translationKey

      public final String translationKey
      Unlocalized name for color.
    • blackVariant

      public final int blackVariant
      Darkest Variant of the color, nearly black; as a RGB HEX Integer
    • mediumVariant

      public final int mediumVariant
      The Variant of the color that is used to represent the color normally; as a RGB HEX Integer
    • whiteVariant

      public final int whiteVariant
      Lightest Variant of the color, nearly white; as a RGB HEX Integer
    • dye

      public final net.minecraft.world.item.DyeColor dye
      Vanilla Dye Equivilient
    • registryPrefix

      public final String registryPrefix
      A convenient ID prefix for use with registering color variants of items and blocks.
    • englishName

      public final String englishName
      English name of this color.
    • contrastTextColor

      public final int contrastTextColor
      Text color that has good contrast with the medium version of this color.
  • Method Details

    • values

      public static AEColor[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AEColor valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromDye

      public static AEColor fromDye(net.minecraft.world.item.DyeColor vanillaDye)
    • getVariantByTintIndex

      public int getVariantByTintIndex(int tintIndex)
      Will return a variant of this color based on the given tint index.
      Parameters:
      tintIndex - A tint index as it can be used for BakedQuad.getTintIndex().
      Returns:
      The appropriate color variant, or -1.
    • getEnglishName

      public String getEnglishName()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AEColor>
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable