-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable,me.bardy.komponent.colour.Color
public enum NamedColor extends Enum<NamedColor> implements Color
Represents a named colour (all of the legacy colours are in here)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNamedColor.Companion
-
Method Summary
Modifier and Type Method Description StringtoString()final StringtoLegacy(Character char)Converts this NamedColor to it's legacy format (a colour character followed by the corresponding legacy character)For example, NamedColor.AQUA becomes char followed by 'b' (with Mojang's legacy code, this would be §b) IntegergetValue()final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
toLegacy
final String toLegacy(Character char)
Converts this NamedColor to it's legacy format (a colour character followed by the corresponding legacy character)
For example, NamedColor.AQUA becomes char followed by 'b' (with Mojang's legacy code, this would be §b)
-
getOrdinal
final Integer getOrdinal()
-
-
-
-