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 specificBlock
type.
-
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 newDeferredHolder
targeting the specifiedBlock
.static <T extends Block>
DeferredBlock<T>Creates a newDeferredHolder
targeting theBlock
with the specified name.
-
Constructor Details
-
DeferredBlock
-
-
Method Details
-
createBlock
Creates a newDeferredHolder
targeting theBlock
with the specified name. -
createBlock
Creates a newDeferredHolder
targeting the specifiedBlock
. -
asItem
-