public class EvilCraft
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static EvilCraft |
_instance
The unique instance of this mod.
|
static cpw.mods.fml.common.network.FMLEventChannel |
channel
Unique instance of the FMLEventChannel that is used to send EvilCraft messages between
clients and server
|
static java.io.File |
CONFIG_FOLDER
Root evilcraft config folder.
|
static CommonProxy |
proxy
The proxy of this mod, depending on 'side' a different proxy will be inside this field.
|
| Constructor and Description |
|---|
EvilCraft() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addInitListeners(IInitListener initListener)
Register a new init listener.
|
void |
init(cpw.mods.fml.common.event.FMLInitializationEvent event)
Register the config dependent things like world generation and proxy handlers.
|
static void |
log(java.lang.String message)
Log a new info message for this mod.
|
static void |
log(java.lang.String message,
org.apache.logging.log4j.Level level)
Log a new message of the given level for this mod.
|
void |
onServerStarted(cpw.mods.fml.common.event.FMLServerStartedEvent event)
Register the things that are related to server starting.
|
void |
onServerStarting(cpw.mods.fml.common.event.FMLServerStartingEvent event)
Register the things that are related to server starting, like commands.
|
void |
onServerStopping(cpw.mods.fml.common.event.FMLServerStoppingEvent event)
Register the things that are related to server stopping, like persistent storage.
|
void |
postInit(cpw.mods.fml.common.event.FMLPostInitializationEvent event)
Register the event hooks.
|
void |
preInit(cpw.mods.fml.common.event.FMLPreInitializationEvent event)
The pre-initialization, will register required configs.
|
public static CommonProxy proxy
SidedProxypublic static EvilCraft _instance
public static java.io.File CONFIG_FOLDER
public static cpw.mods.fml.common.network.FMLEventChannel channel
public void preInit(cpw.mods.fml.common.event.FMLPreInitializationEvent event)
event - The Forge event required for this.public void init(cpw.mods.fml.common.event.FMLInitializationEvent event)
event - The Forge event required for this.public void postInit(cpw.mods.fml.common.event.FMLPostInitializationEvent event)
event - The Forge event required for this.public void onServerStarting(cpw.mods.fml.common.event.FMLServerStartingEvent event)
event - The Forge event required for this.public void onServerStarted(cpw.mods.fml.common.event.FMLServerStartedEvent event)
event - The Forge event required for this.public void onServerStopping(cpw.mods.fml.common.event.FMLServerStoppingEvent event)
event - The Forge event required for this.public static void log(java.lang.String message)
message - The message to show.public static void log(java.lang.String message,
org.apache.logging.log4j.Level level)
message - The message to show.level - The level in which the message must be shown.public static void addInitListeners(IInitListener initListener)
initListener - The init listener.