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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidclientSetup(net.neoforged.fml.event.lifecycle.FMLClientSetupEvent event) Automatically registered to the event bus.final net.minecraft.resources.IdentifierCreates a newIdentifierwhere the namespace is this mods id and the path is the given string.protected abstract voidsetup(net.neoforged.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()
-
-
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
Creates a newIdentifierwhere the namespace is this mods id and the path is the given string.
-