Class DeferredItem<T extends Item>
java.lang.Object
net.minecraft.core.Holder.Reference<Item>
net.neoforged.neoforge.registries.DeferredHolder<Item,T>
net.neoforged.neoforge.registries.DeferredItem<T>
- Type Parameters:
T- The specificItemtype.
- All Implemented Interfaces:
Supplier<T>, Holder<Item>, ItemLike, IHolderExtension<Item>, IWithData<Item>
-
Nested Class Summary
Nested classes/interfaces inherited from class Holder.Reference
Holder.Reference.TypeNested classes/interfaces inherited from interface Holder
Holder.Direct<T>, Holder.Kind, Holder.Reference<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasItem()static <T extends Item>
DeferredItem<T> createItem(Identifier key) Creates a newDeferredHoldertargeting theItemwith the specified name.static <T extends Item>
DeferredItem<T> createItem(ResourceKey<Item> key) Creates a newDeferredHoldertargeting the specifiedItem.toStack()toStack(int count) Methods inherited from class DeferredHolder
areComponentsBound, asOptional, bind, canSerializeIn, components, create, create, create, get, getDelegate, getId, is, is, isBound, tags, toString, unwrapLookup, valueMethods inherited from class Holder.Reference
bindComponents, bindValue, createIntrusive, createStandAlone, equals, getData, hashCode, is, is, is, key, keyOrNull, kind, unwrap, unwrapKeyMethods inherited from interface Holder
getRegisteredName, getRegisteredNameIfPresentMethods inherited from interface IHolderExtension
getKey
-
Constructor Details
-
DeferredItem
-
-
Method Details
-
toStack
-
toStack
-
createItem
Creates a newDeferredHoldertargeting theItemwith the specified name. -
createItem
Creates a newDeferredHoldertargeting the specifiedItem. -
asItem
-