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.minecraftforge.registries.RegistryObject<BlockFluidSubstitution>static final net.minecraftforge.registries.RegistryObject<BlockSolidSubstitution>static final net.minecraftforge.registries.RegistryObject<BlockSubstitution>static final net.minecraftforge.registries.RegistryObject<BlockTagSubstitution>static final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.Block>static <B extends net.minecraft.world.level.block.Block>
net.minecraftforge.registries.RegistryObject<B>Utility shorthand to register blocks using the deferred registry
-
Field Details
-
NULL_PLACEMENT
public static final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> NULL_PLACEMENT -
blockSubstitution
public static final net.minecraftforge.registries.RegistryObject<BlockSubstitution> blockSubstitution -
blockSolidSubstitution
public static final net.minecraftforge.registries.RegistryObject<BlockSolidSubstitution> blockSolidSubstitution -
blockFluidSubstitution
public static final net.minecraftforge.registries.RegistryObject<BlockFluidSubstitution> blockFluidSubstitution -
blockTagSubstitution
public static final net.minecraftforge.registries.RegistryObject<BlockTagSubstitution> blockTagSubstitution
-
-
Method Details
-
getRegistry
public static net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> getRegistry() -
register
public static <B extends net.minecraft.world.level.block.Block> net.minecraftforge.registries.RegistryObject<B> register(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 demandgroup- theCreativeModeTabthis belongs to (sets creative tab)- Returns:
- the block entry saved to the registry
-