public abstract class Mod
extends java.lang.Object
Please don't forget to register the initialization method in your fabric.mod.json
's
entrypoints.server
as com.example.YourMod::init
Constructor and Description |
---|
Mod() |
Modifier and Type | Method and Description |
---|---|
Server |
getServer()
Gets the current server instance
|
abstract void |
init()
This is your initialization method.
|
void |
registerCommand(CommandBuilder builder)
Registers a
CommandBuilder |
void |
registerEvent(EventHandler e)
Registers an
EventHandler |
public abstract void init()
ReadyEvent
public Server getServer()
public void registerEvent(EventHandler e)
EventHandler
e
- The event handler to registerpublic void registerCommand(CommandBuilder builder)
CommandBuilder
builder
- The command to register