Enum HTDefaultPart.Prefixed
-
- All Implemented Interfaces:
-
hiiragi283.core.api.material.property.HTDefaultPart,java.io.Serializable,kotlin.Comparable
public enum HTDefaultPart.Prefixed extends Enum<HTDefaultPart.Prefixed> implements HTDefaultPart
HTTagPrefixに基づいたHTDefaultPartの実装クラスです。
- Since:
0.8.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private final HTTagPrefixprefixprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<HTDefaultPart.Prefixed>entries
-
Method Summary
Modifier and Type Method Description TagKey<Item>getTag(HTMaterialKey key)指定したkeyから素材アイテムのタグを取得します。 HTItemHolderLike<?>getItem(HTMaterialKey key)指定したkeyから素材アイテムを取得します。 StringgetSuffix()レシピの生成時に使用されるサフィックスを取得します。 final Array<HTDefaultPart.Prefixed>values()Returns an array containing the constants of this enum type, in the order they're declared. final HTDefaultPart.PrefixedvalueOf(String value)Returns the enum constant of this type with the specified name. final HTTagPrefixgetPrefix()final StringgetName()final IntegergetOrdinal()final EnumEntries<HTDefaultPart.Prefixed>getEntries()-
-
Method Detail
-
getTag
TagKey<Item> getTag(HTMaterialKey key)
指定したkeyから素材アイテムのタグを取得します。
-
getItem
HTItemHolderLike<?> getItem(HTMaterialKey key)
指定したkeyから素材アイテムを取得します。
- Returns:
対応するアイテムがない場合は
null
-
values
final Array<HTDefaultPart.Prefixed> 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 HTDefaultPart.Prefixed 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.)
-
getPrefix
final HTTagPrefix getPrefix()
-
getOrdinal
final Integer getOrdinal()
-
getEntries
final EnumEntries<HTDefaultPart.Prefixed> getEntries()
-
-
-
-