Package org.moddingx.libx.mod
Class ModX
java.lang.Object
org.moddingx.libx.mod.ModX
- Direct Known Subclasses:
LibX
,ModXRegistration
A base class for a mod that uses LibX. Is required for many other features
of LibX.
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ModX()
Subclasses should provide a public no-arg constructor that calls this with the values needed. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
clientSetup
(net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent event) Automatically registered to the event bus.final net.minecraft.resources.ResourceLocation
Creates a newResourceLocation
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.
-
Field Details
-
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
Creates a newResourceLocation
where the namespace is this mods id and the path is the given string.
-