Class DeferredBlock<T extends Block>
java.lang.Object
net.minecraft.core.Holder.Reference<Block>
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 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 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, 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
-
DeferredBlock
-
-
Method Details
-
toStack
-
toStack
-
createBlock
Creates a newDeferredHoldertargeting theBlockwith the specified name. -
createBlock
Creates a newDeferredHoldertargeting the specifiedBlock. -
asItem
-