Class NeoforgeCopperShearsMod

java.lang.Object
de.cech12.coppershears.NeoforgeCopperShearsMod

public class NeoforgeCopperShearsMod extends Object
Mod class for the Neoforge loader.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.neoforged.neoforge.registries.DeferredRegister.Items
    mod specific item registry
  • Constructor Summary

    Constructors
    Constructor
    Description
    NeoforgeCopperShearsMod(net.neoforged.bus.api.IEventBus modEventBus)
    Constructor of a mod instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addItemsToTabs(net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent event)
    Registers the creative tabs for all items.
    static void
    registerDispenseBehavior(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event)
    Registers the dispense behaviour of the shears.

    Methods inherited from class java.lang.Object

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

    • ITEMS

      public static final net.neoforged.neoforge.registries.DeferredRegister.Items ITEMS
      mod specific item registry
  • Constructor Details

    • NeoforgeCopperShearsMod

      public NeoforgeCopperShearsMod(net.neoforged.bus.api.IEventBus modEventBus)
      Constructor of a mod instance.
  • Method Details

    • registerDispenseBehavior

      public static void registerDispenseBehavior(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event)
      Registers the dispense behaviour of the shears.
      Parameters:
      event - FMLCommonSetupEvent
    • addItemsToTabs

      public static void addItemsToTabs(net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent event)
      Registers the creative tabs for all items.
      Parameters:
      event - BuildCreativeModeTabContentsEvent