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
    Subclasses should provide a public no-arg constructor that calls this with the values needed.
  • Method Summary

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

    Methods inherited from class java.lang.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()
      Subclasses should provide a public no-arg constructor that calls this with the values needed.
  • Method Details

    • setup

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

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

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