Uses of Class
net.neoforged.neoforge.registries.DeferredBlock
Packages that use DeferredBlock
-
Uses of DeferredBlock in net.neoforged.neoforge.registries
Methods in net.neoforged.neoforge.registries that return DeferredBlockModifier and TypeMethodDescriptionstatic <T extends Block>
DeferredBlock<T> DeferredBlock.createBlock
(ResourceKey<Block> key) Creates a newDeferredHolder
targeting the specifiedBlock
.static <T extends Block>
DeferredBlock<T> DeferredBlock.createBlock
(ResourceLocation key) Creates a newDeferredHolder
targeting theBlock
with the specified name.protected <I extends Block>
DeferredBlock<I> DeferredRegister.Blocks.createHolder
(ResourceKey<? extends Registry<Block>> registryKey, ResourceLocation key) <B extends Block>
DeferredBlock<B> DeferredRegister.Blocks.register
(String name, Function<ResourceLocation, ? extends B> func) Adds a new block to the list of entries to be registered and returns aDeferredHolder
that will be populated with the created block automatically.<B extends Block>
DeferredBlock<B> Adds a new block to the list of entries to be registered and returns aDeferredHolder
that will be populated with the created block automatically.<B extends Block>
DeferredBlock<B> DeferredRegister.Blocks.registerBlock
(String name, Function<BlockBehaviour.Properties, ? extends B> func) Adds a new block to the list of entries to be registered and returns aDeferredHolder
that will be populated with the created block automatically.<B extends Block>
DeferredBlock<B> DeferredRegister.Blocks.registerBlock
(String name, Function<BlockBehaviour.Properties, ? extends B> func, BlockBehaviour.Properties props) Adds a new block to the list of entries to be registered and returns aDeferredHolder
that will be populated with the created block automatically.DeferredRegister.Blocks.registerSimpleBlock
(String name) Adds a new simpleBlock
with the defaultproperties
to the list of entries to be registered and returns aDeferredHolder
that will be populated with the created block automatically.DeferredRegister.Blocks.registerSimpleBlock
(String name, BlockBehaviour.Properties props) Adds a new simpleBlock
with the givenproperties
to the list of entries to be registered and returns aDeferredHolder
that will be populated with the created block automatically.