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
HTPartとHTTagPrefixに基づいたHTDefaultPartの実装クラスです。
- Since:
0.8.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private final HTPartpartprivate final HTTagPrefixprefixprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<HTDefaultPart.Prefixed>entries
-
Method Summary
Modifier and Type Method Description TagKey<Item>getTag(HTMaterialLike material)指定した素材から素材アイテムのタグを取得します。 HTMaterialContents.ItemEntrygetItem(HTMaterialLike material)指定した素材から素材アイテムを取得します。 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 HTPartgetPart()final HTTagPrefixgetPrefix()final StringgetName()final IntegergetOrdinal()final EnumEntries<HTDefaultPart.Prefixed>getEntries()-
-
Method Detail
-
getTag
TagKey<Item> getTag(HTMaterialLike material)
指定した素材から素材アイテムのタグを取得します。
-
getItem
HTMaterialContents.ItemEntry getItem(HTMaterialLike material)
指定した素材から素材アイテムを取得します。
- 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()
-
-
-
-