Package com.ldtteam.structurize.blocks
Class ModBlocks
java.lang.Object
com.ldtteam.structurize.blocks.ModBlocks
Class to register blocks to Structurize
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.neoforged.neoforge.registries.DeferredBlock<BlockFluidSubstitution>static final net.neoforged.neoforge.registries.DeferredRegister.Blocksstatic final net.neoforged.neoforge.registries.DeferredBlock<BlockSolidSubstitution>static final net.neoforged.neoforge.registries.DeferredBlock<BlockSubstitution>static final net.neoforged.neoforge.registries.DeferredBlock<BlockTagSubstitution>static final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> -
Method Summary
Modifier and TypeMethodDescriptionstatic <B extends net.minecraft.world.level.block.Block>
net.neoforged.neoforge.registries.DeferredBlock<B>registerWithBlockItem(String name, Supplier<B> block) Utility shorthand to register blocks using the deferred registry
-
Field Details
-
BLOCKS
public static final net.neoforged.neoforge.registries.DeferredRegister.Blocks BLOCKS -
NULL_PLACEMENT
public static final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> NULL_PLACEMENT -
blockSubstitution
public static final net.neoforged.neoforge.registries.DeferredBlock<BlockSubstitution> blockSubstitution -
blockSolidSubstitution
public static final net.neoforged.neoforge.registries.DeferredBlock<BlockSolidSubstitution> blockSolidSubstitution -
blockFluidSubstitution
public static final net.neoforged.neoforge.registries.DeferredBlock<BlockFluidSubstitution> blockFluidSubstitution -
blockTagSubstitution
public static final net.neoforged.neoforge.registries.DeferredBlock<BlockTagSubstitution> blockTagSubstitution
-
-
Method Details
-
registerWithBlockItem
public static <B extends net.minecraft.world.level.block.Block> net.neoforged.neoforge.registries.DeferredBlock<B> registerWithBlockItem(String name, Supplier<B> block) Utility shorthand to register blocks using the deferred registry- Type Parameters:
B- the block subclass for the factory response- Parameters:
name- the registry name of the blockblock- a factory / constructor to create the block on demand- Returns:
- the block entry saved to the registry
-