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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Holder
Holder.Direct<T>, Holder.Kind, Holder.Reference<T> -
Field Summary
Fields inherited from class DeferredHolder
key -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasItem()static <T extends Block>
DeferredBlock<T> createBlock(Identifier key) Creates a newDeferredHoldertargeting theBlockwith the specified name.static <T extends Block>
DeferredBlock<T> createBlock(ResourceKey<Block> key) Creates a newDeferredHoldertargeting the specifiedBlock.toStack()toStack(int count) Methods inherited from class DeferredHolder
areComponentsBound, asOptional, bind, canSerializeIn, components, 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 interface Holder
getRegisteredNameMethods inherited from interface IHolderExtension
unwrapLookup
-
Constructor Details
-
DeferredBlock
-
-
Method Details
-
toStack
-
toStack
-
createBlock
Creates a newDeferredHoldertargeting theBlockwith the specified name. -
createBlock
Creates a newDeferredHoldertargeting the specifiedBlock. -
asItem
-