Package hiiragi283.core.common.registry
Class HTDeferredBlockAndItem
-
- All Implemented Interfaces:
-
hiiragi283.core.api.registry.HTHolderLike,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.util.function.Supplier,net.minecraft.world.level.ItemLike
public final class HTDeferredBlockAndItem<BLOCK extends Block, ITEM extends Item> implements HTHolderLike<Block, BLOCK>, HTHasTranslationKey, HTHasText, HTItemLike<ITEM>
-
-
Field Summary
Fields Modifier and Type Field Description private final HTItemHolderLike<ITEM>itemHolderprivate final StringtranslationKeyprivate final Stringnamespaceprivate final Stringpath
-
Constructor Summary
Constructors Constructor Description HTDeferredBlockAndItem(HTHolderLike<Block, BLOCK> blockHolder, HTItemHolderLike<ITEM> itemHolder)
-
Method Summary
Modifier and Type Method Description final HTItemHolderLike<ITEM>getItemHolder()StringgetTranslationKey()StringgetNamespace()StringgetPath()ComponentgetText()テキストを取得します。 -
Methods inherited from class hiiragi283.core.api.registry.HTHolderLike
getHolder, getResourceKey, unwrap -
Methods inherited from class java.util.function.Supplier
get -
Methods inherited from class hiiragi283.core.api.resource.HTIdLike
getId -
Methods inherited from class hiiragi283.core.api.registry.HTItemLike
asItem, isOf, isOf, toResource, toResource, toStack -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTDeferredBlockAndItem
HTDeferredBlockAndItem(HTHolderLike<Block, BLOCK> blockHolder, HTItemHolderLike<ITEM> itemHolder)
-
-
Method Detail
-
getItemHolder
final HTItemHolderLike<ITEM> getItemHolder()
-
getTranslationKey
String getTranslationKey()
-
getNamespace
String getNamespace()
-
getText
Component getText()
テキストを取得します。
-
-
-
-