Class ModBlocks

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

public final class ModBlocks extends Object
Class to register blocks to Structurize
  • 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 block
      block - a factory / constructor to create the block on demand
      Returns:
      the block entry saved to the registry