Class ModBlocks

java.lang.Object
com.ldtteam.structurize.blocks.ModBlocks

public final class ModBlocks extends Object
Class to register blocks to Structurize
  • 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 block
      block - a factory / constructor to create the block on demand
      group - the CreativeModeTab this belongs to (sets creative tab)
      Returns:
      the block entry saved to the registry