Package hiiragi283.core.api.registry
Interface HTItemHolderLike
-
- All Implemented Interfaces:
-
hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.text.HTHasText,hiiragi283.core.api.text.HTHasTranslationKey,net.minecraft.world.level.ItemLike
public interface HTItemHolderLike<ITEM extends Item> implements ItemLike, HTIdLike, HTHasTranslationKey, HTHasText
- Since:
0.11.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceHTItemHolderLike.Simplepublic classHTItemHolderLike.Companion
-
Method Summary
Modifier and Type Method Description abstract ITEMasItem()保持しているアイテムを取得します。 abstract Holder<Item>getItemHolder()保持しているアイテムのHolderを取得します。 ItemStacktoStack(Integer count)指定した個数でItemStackに変換します。 HTItemResourceTypetoResource()HTItemResourceTypeに変換します。 HTItemResourceTypetoResource(DataComponentPatch patch)指定したpatchでHTItemResourceTypeに変換します。 StringgetNamespace()StringgetPath()abstract StringgetTranslationKey()-
-
Method Detail
-
getItemHolder
abstract Holder<Item> getItemHolder()
保持しているアイテムのHolderを取得します。
-
toResource
HTItemResourceType toResource()
HTItemResourceTypeに変換します。
-
toResource
HTItemResourceType toResource(DataComponentPatch patch)
指定したpatchでHTItemResourceTypeに変換します。
-
getNamespace
String getNamespace()
-
getTranslationKey
abstract String getTranslationKey()
-
-
-
-