Package hiiragi283.ragium.common.item
Enum HTFoodCanType
-
- All Implemented Interfaces:
-
hiiragi283.core.api.data.lang.HTLangName,hiiragi283.core.api.registry.HTHolderLike,hiiragi283.core.api.registry.HTItemHolderLike,hiiragi283.core.api.registry.HTItemHolderLike.Simple,hiiragi283.core.api.registry.HTItemLike,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.resource.HTKeyLike,hiiragi283.core.api.resource.SupplierWithId,hiiragi283.core.api.text.HTHasText,hiiragi283.core.api.text.HTHasTranslationKey,java.io.Serializable,java.util.function.Supplier,kotlin.Comparable,net.minecraft.util.StringRepresentable,net.minecraft.world.level.ItemLike
public enum HTFoodCanType extends Enum<HTFoodCanType> implements StringRepresentable, HTLangName, HTItemHolderLike.Simple<Item>
-
-
Field Summary
Fields Modifier and Type Field Description private final TagKey<Item>foodTagprivate final StringtranslationKeyprivate final Stringnamespaceprivate final Stringpathprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<HTFoodCanType>entriesprivate final StringserializedName
-
Method Summary
Modifier and Type Method Description Either<ResourceKey<Item>, Holder<Item>>unwrap()Itemget()StringgetTranslatedName(HTLangType type)StringgetSerializedName()final Array<HTFoodCanType>values()Returns an array containing the constants of this enum type, in the order they're declared. final HTFoodCanTypevalueOf(String value)Returns the enum constant of this type with the specified name. final TagKey<Item>getFoodTag()StringgetTranslationKey()StringgetNamespace()StringgetPath()final StringgetName()final IntegergetOrdinal()final EnumEntries<HTFoodCanType>getEntries()-
Methods inherited from class hiiragi283.core.api.registry.HTItemHolderLike.Simple
getText -
Methods inherited from class hiiragi283.core.api.registry.HTItemHolderLike
asItem, getHolder -
Methods inherited from class hiiragi283.core.api.registry.HTHolderLike
getHolder, getResourceKey -
Methods inherited from class hiiragi283.core.api.resource.HTIdLike
getId -
Methods inherited from class hiiragi283.core.api.registry.HTItemLike
isOf, isOf, toResource, toResource, toStack -
Methods inherited from class hiiragi283.ragium.common.item.HTFoodCanType
getSerializedName -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
unwrap
Either<ResourceKey<Item>, Holder<Item>> unwrap()
-
get
Item get()
-
getTranslatedName
String getTranslatedName(HTLangType type)
-
getSerializedName
String getSerializedName()
-
values
final Array<HTFoodCanType> 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 HTFoodCanType 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.)
-
getFoodTag
final TagKey<Item> getFoodTag()
-
getTranslationKey
String getTranslationKey()
-
getNamespace
String getNamespace()
-
getOrdinal
final Integer getOrdinal()
-
getEntries
final EnumEntries<HTFoodCanType> getEntries()
-
-
-
-