Class ModX

java.lang.Object
org.moddingx.libx.mod.ModX
Direct Known Subclasses:
LibX, ModXRegistration

public abstract class ModX extends Object
A base class for a mod that uses LibX. Is required for many other features of LibX.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    Contains the Mod id of this mod.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    clientSetup(net.neoforged.fml.event.lifecycle.FMLClientSetupEvent event)
    Automatically registered to the event bus.
    final net.minecraft.resources.Identifier
    id(String path)
    Creates a new Identifier where the namespace is this mods id and the path is the given string.
    protected abstract void
    setup(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event)
    Automatically registered to the event bus.

    Methods inherited from class Object

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

    • modid

      public final String modid
      Contains the Mod id of this mod.
  • Constructor Details

    • ModX

      protected ModX()
  • Method Details

    • setup

      protected abstract void setup(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event)
      Automatically registered to the event bus.
    • clientSetup

      protected abstract void clientSetup(net.neoforged.fml.event.lifecycle.FMLClientSetupEvent event)
      Automatically registered to the event bus.
    • id

      public final net.minecraft.resources.Identifier id(String path)
      Creates a new Identifier where the namespace is this mods id and the path is the given string.