Package hiiragi283.core.api.registry
Interface HTItemHolderLike
-
- All Implemented Interfaces:
-
hiiragi283.core.api.registry.HTHolderLike,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.resource.HTKeyLike,hiiragi283.core.api.text.HTHasText,hiiragi283.core.api.text.HTHasTranslationKey,java.util.function.Supplier,net.minecraft.world.level.ItemLike
public interface HTItemHolderLike<ITEM extends Item> implements HTHolderLike<Item, ITEM>, HTHasTranslationKey, HTHasText, ItemLike
ItemLikeとその他諸々を継承したHTHolderLikeの拡張インターフェースです。
- Since:
0.13.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 Holder<Item>getHolder()ITEMasItem()BooleanisOf(Item item)BooleanisOf(ItemStack stack)ItemStacktoStack(Integer count)指定した個数でItemStackに変換します。 HTItemResourceTypetoResource()HTItemResourceTypeに変換します。 HTItemResourceTypetoResource(DataComponentPatch patch)指定したpatchでHTItemResourceTypeに変換します。 StringgetNamespace()StringgetPath()abstract StringgetTranslationKey()-
Methods inherited from class hiiragi283.core.api.registry.HTHolderLike
getHolder, getResourceKey, unwrap -
Methods inherited from class hiiragi283.core.api.resource.HTKeyLike
getId, isOf, isOf -
Methods inherited from class java.util.function.Supplier
get -
Methods inherited from class hiiragi283.core.api.text.HTHasText
getText -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getHolder
Holder<Item> getHolder()
-
toResource
HTItemResourceType toResource()
HTItemResourceTypeに変換します。
-
toResource
HTItemResourceType toResource(DataComponentPatch patch)
指定したpatchでHTItemResourceTypeに変換します。
-
getNamespace
String getNamespace()
-
getTranslationKey
abstract String getTranslationKey()
-
-
-
-