Package hiiragi283.core.api
Enum HTDefaultColor
-
- All Implemented Interfaces:
-
hiiragi283.core.api.data.lang.HTLangName,hiiragi283.core.api.material.HTMaterialLike,java.io.Serializable,kotlin.Comparable,net.minecraft.util.StringRepresentable
public enum HTDefaultColor extends Enum<HTDefaultColor> implements StringRepresentable, HTLangName, HTMaterialLike
Minecraftで使用される様々な「色」をまとめたクラスです。
- Since:
0.6.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classHTDefaultColor.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integercolorprivate final DyeColordyeColorprivate final TextColortextColorprivate final TagKey<Item>dyesTagprivate final TagKey<Item>dyedTagprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<HTDefaultColor>entriesprivate final StringserializedName
-
Method Summary
Modifier and Type Method Description StringgetSerializedName()HTMaterialKeyasMaterialKey()保持している素材キーを返します。 final Array<HTDefaultColor>values()Returns an array containing the constants of this enum type, in the order they're declared. final HTDefaultColorvalueOf(String value)Returns the enum constant of this type with the specified name. final IntegergetColor()final DyeColorgetDyeColor()final TextColorgetTextColor()final TagKey<Item>getDyesTag()final TagKey<Item>getDyedTag()final StringgetName()final IntegergetOrdinal()final EnumEntries<HTDefaultColor>getEntries()-
Methods inherited from class hiiragi283.core.api.data.lang.HTLangName
getTranslatedName -
Methods inherited from class hiiragi283.core.api.material.HTMaterialLike
asMaterialId, isOf -
Methods inherited from class hiiragi283.core.api.HTDefaultColor
getSerializedName -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSerializedName
String getSerializedName()
-
asMaterialKey
HTMaterialKey asMaterialKey()
保持している素材キーを返します。
-
values
final Array<HTDefaultColor> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
valueOf
final HTDefaultColor valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
getDyeColor
final DyeColor getDyeColor()
-
getTextColor
final TextColor getTextColor()
-
getDyesTag
final TagKey<Item> getDyesTag()
-
getDyedTag
final TagKey<Item> getDyedTag()
-
getOrdinal
final Integer getOrdinal()
-
getEntries
final EnumEntries<HTDefaultColor> getEntries()
-
-
-
-