Package hiiragi283.lib.registry
Class HTDeferredBlockAndItem
-
- All Implemented Interfaces:
-
hiiragi283.lib.resource.HTIdLike,hiiragi283.lib.resource.HTIdLike.Translatable,hiiragi283.lib.resource.SupplierWithId,hiiragi283.lib.text.HTHasText,hiiragi283.lib.text.HTHasTranslationKey,java.util.function.Supplier,net.minecraft.world.level.ItemLike
public final class HTDeferredBlockAndItem<BLOCK extends Block, ITEM extends Item> implements SupplierWithId<BLOCK>, HTIdLike.Translatable, ItemLike
-
-
Field Summary
Fields Modifier and Type Field Description private final HTDeferredBlock<BLOCK>blockHolderprivate final HTDeferredItem<ITEM>itemHolderprivate final Stringnamespaceprivate final Stringpathprivate final StringtranslationKey
-
Constructor Summary
Constructors Constructor Description HTDeferredBlockAndItem(HTDeferredBlock<BLOCK> blockHolder, HTDeferredItem<ITEM> itemHolder)
-
Method Summary
Modifier and Type Method Description final HTDeferredBlock<BLOCK>getBlockHolder()final HTDeferredItem<ITEM>getItemHolder()StringgetNamespace()StringgetPath()abstract StringgetTranslationKey()BLOCKget()final Either<ErrorText, ItemStackTemplate>toTemplate(Integer count, DataComponentPatch patch)final ItemStacktoStack(Integer count, DataComponentPatch patch)-
Methods inherited from class hiiragi283.lib.resource.HTIdLike
getId -
Methods inherited from class hiiragi283.lib.text.HTHasText
getText -
Methods inherited from class net.minecraft.world.level.ItemLike
asItem -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTDeferredBlockAndItem
HTDeferredBlockAndItem(HTDeferredBlock<BLOCK> blockHolder, HTDeferredItem<ITEM> itemHolder)
-
-
Method Detail
-
getBlockHolder
final HTDeferredBlock<BLOCK> getBlockHolder()
-
getItemHolder
final HTDeferredItem<ITEM> getItemHolder()
-
getNamespace
String getNamespace()
-
getTranslationKey
abstract String getTranslationKey()
-
toTemplate
final Either<ErrorText, ItemStackTemplate> toTemplate(Integer count, DataComponentPatch patch)
-
-
-
-