Class ForgeCopperShearsMod

java.lang.Object
de.cech12.coppershears.ForgeCopperShearsMod

public class ForgeCopperShearsMod extends Object
Mod class for the Forge loader.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item>
    mod specific item registry
  • Constructor Summary

    Constructors
    Constructor
    Description
    ForgeCopperShearsMod(net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext context)
    Constructor of a mod instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addItemsToTabs(net.minecraftforge.event.BuildCreativeModeTabContentsEvent event)
    Registers the creative tabs for all items.
    static void
    registerDispenseBehavior(net.minecraftforge.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.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> ITEMS
      mod specific item registry
  • Constructor Details

    • ForgeCopperShearsMod

      public ForgeCopperShearsMod(net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext context)
      Constructor of a mod instance.
  • Method Details

    • registerDispenseBehavior

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

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