Class HTDeferredItem

  • 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 , java.util.function.Supplier , net.minecraft.core.Holder , net.minecraft.world.level.ItemLike , net.neoforged.neoforge.common.extensions.IHolderExtension , net.neoforged.neoforge.registries.datamaps.IWithData

    
    public final class HTDeferredItem<ITEM extends Item>
    extends HTDeferredHolder<Item, ITEM> implements HTIdLike.Translatable, ItemLike
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getTranslationKey()
      String getNamespace()
      String getPath()
      Component getText() テキストを取得します。
      ITEM asItem()
      final Either<ErrorText, ItemStackTemplate> toTemplate(Integer count, DataComponentPatch patch)
      final ItemStack toStack(Integer count, DataComponentPatch patch)
      • Methods inherited from class hiiragi283.lib.registry.HTDeferredItem

        getDelegate, getId, getKey, getRegisteredName, isBound
      • Methods inherited from class net.minecraft.core.Holder

        areComponentsBound, canSerializeIn, components, is, is, is, is, is, kind, tags, unwrap, unwrapKey, value
      • Methods inherited from class java.util.function.Supplier

        get
      • Methods inherited from class net.neoforged.neoforge.registries.DeferredHolder

        asOptional, getId
      • Methods inherited from class net.neoforged.neoforge.common.extensions.IHolderExtension

        getDelegate, getKey, unwrapLookup
      • Methods inherited from class net.neoforged.neoforge.registries.datamaps.IWithData

        getData
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait