Class RaccoonRegistryUtil.Blocks

java.lang.Object
net.kamkeyke.raccooncore.util.RaccoonRegistryUtil.Blocks
Enclosing class:
RaccoonRegistryUtil

public static class RaccoonRegistryUtil.Blocks extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends net.minecraft.world.level.block.Block>
    net.minecraftforge.registries.RegistryObject<T>
    registerBlock(String name, Supplier<T> block, int burnTime, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> blocks, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> items)
    Registers a Block and automatically creates its corresponding BlockItem with a burn time.
    static <T extends net.minecraft.world.level.block.Block>
    net.minecraftforge.registries.RegistryObject<T>
    registerBlock(String name, Supplier<T> block, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> blocks, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> items)
    Registers a Block and automatically creates its corresponding BlockItem.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Blocks

      public Blocks()
  • Method Details

    • registerBlock

      public static <T extends net.minecraft.world.level.block.Block> net.minecraftforge.registries.RegistryObject<T> registerBlock(String name, Supplier<T> block, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> blocks, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> items)
      Registers a Block and automatically creates its corresponding BlockItem.
      Parameters:
      name - The registry name (Registry ID).
      block - A Supplier providing the Block instance.
      Returns:
      The RegistryObject of the registered Block.
    • registerBlock

      public static <T extends net.minecraft.world.level.block.Block> net.minecraftforge.registries.RegistryObject<T> registerBlock(String name, Supplier<T> block, int burnTime, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> blocks, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> items)
      Registers a Block and automatically creates its corresponding BlockItem with a burn time.
      Parameters:
      name - The registry name (Registry ID).
      block - A Supplier providing the Block instance.
      burnTime - The fuel duration in ticks for the item (e.g., 200 ticks = 1 item smelted).
      Returns:
      The RegistryObject of the registered Block.