类 DeferredItem<T extends Item>
java.lang.Object
net.neoforged.neoforge.registries.DeferredHolder<Item,T>
net.neoforged.neoforge.registries.DeferredItem<T>
- 类型参数:
T
- The specificItem
type.
- 直接已知子类:
DeferredItemBuilder
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.core.Holder
Holder.Direct<T>, Holder.Kind, Holder.Reference<T>
-
字段概要
从类继承的字段 net.neoforged.neoforge.registries.DeferredHolder
key
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明asItem()
static <T extends Item>
DeferredItem<T> createItem
(ResourceKey<Item> key) Creates a newDeferredHolder
targeting the specifiedItem
.static <T extends Item>
DeferredItem<T> Creates a newDeferredHolder
targeting theItem
with the specified name.toStack()
toStack
(int count) 从类继承的方法 net.neoforged.neoforge.registries.DeferredHolder
asOptional, bind, canSerializeIn, create, create, create, equals, get, getData, getDelegate, getId, getKey, getRegistry, hashCode, is, is, is, is, is, isBound, kind, tags, toString, unwrap, unwrapKey, value
从接口继承的方法 net.minecraft.core.Holder
getRegisteredName
从接口继承的方法 net.neoforged.neoforge.common.extensions.IHolderExtension
unwrapLookup
-
构造器详细资料
-
DeferredItem
-
-
方法详细资料
-
toStack
-
toStack
- 参数:
count
- The size of the stack to create
-
createItem
Creates a newDeferredHolder
targeting theItem
with the specified name. -
createItem
Creates a newDeferredHolder
targeting the specifiedItem
. -
asItem
-