Class DeferredBlock<T extends Block>
java.lang.Object
net.neoforged.neoforge.registries.DeferredHolder<Block,T>
net.neoforged.neoforge.registries.DeferredBlock<T>
- Type Parameters:
T- The specificBlocktype.
- All Implemented Interfaces:
Supplier<T>,Holder<Block>,ItemLike,IHolderExtension<Block>,IWithData<Block>
- Direct Known Subclasses:
DeferredBlockBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.Holder
Holder.Direct<T>, Holder.Kind, Holder.Reference<T> -
Field Summary
Fields inherited from class net.neoforged.neoforge.registries.DeferredHolder
key -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasItem()static <T extends Block>
DeferredBlock<T> createBlock(ResourceKey<Block> key) Creates a newDeferredHoldertargeting the specifiedBlock.static <T extends Block>
DeferredBlock<T> Creates a newDeferredHoldertargeting theBlockwith the specified name.toStack()toStack(int count) Methods inherited from class 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, valueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.core.Holder
getRegisteredNameMethods inherited from interface net.neoforged.neoforge.common.extensions.IHolderExtension
unwrapLookup
-
Constructor Details
-
DeferredBlock
-
-
Method Details
-
toStack
-
toStack
- Parameters:
count- The size of the stack to create
-
createBlock
Creates a newDeferredHoldertargeting theBlockwith the specified name. -
createBlock
Creates a newDeferredHoldertargeting the specifiedBlock. -
asItem
-