Class RaccoonRegistryUtil.Items

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

public static class RaccoonRegistryUtil.Items 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<net.minecraft.world.item.Item>
    registerBlockItem(String name, net.minecraftforge.registries.RegistryObject<T> block, int burnTime, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> items)
    Registers a BlockItem with fuel properties for a previously registered Block.
    static <T extends net.minecraft.world.level.block.Block>
    net.minecraftforge.registries.RegistryObject<net.minecraft.world.item.Item>
    registerBlockItem(String name, net.minecraftforge.registries.RegistryObject<T> block, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> items)
    Registers a BlockItem for a previously registered Block.

    Methods inherited from class java.lang.Object

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

    • Items

      public Items()
  • Method Details

    • registerBlockItem

      public static <T extends net.minecraft.world.level.block.Block> net.minecraftforge.registries.RegistryObject<net.minecraft.world.item.Item> registerBlockItem(String name, net.minecraftforge.registries.RegistryObject<T> block, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> items)
      Registers a BlockItem for a previously registered Block.
      Parameters:
      name - The registry name (must match the block's registry name).
      block - The RegistryObject of the parent block.
      Returns:
      The RegistryObject of the registered Item.
    • registerBlockItem

      public static <T extends net.minecraft.world.level.block.Block> net.minecraftforge.registries.RegistryObject<net.minecraft.world.item.Item> registerBlockItem(String name, net.minecraftforge.registries.RegistryObject<T> block, int burnTime, net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> items)
      Registers a BlockItem with fuel properties for a previously registered Block.
      Parameters:
      name - The registry name (must match the block's registry name).
      block - The RegistryObject of the parent block.
      burnTime - The fuel duration in ticks (e.g., 200 ticks = 1 item smelted).
      Returns:
      The RegistryObject of the registered Item.