public class IMCHandler
extends java.lang.Object
FMLInterModComms.IMCEvents.| Modifier and Type | Class and Description |
|---|---|
static interface |
IMCHandler.IIMCAction |
| Constructor and Description |
|---|
IMCHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(cpw.mods.fml.common.event.FMLInterModComms.IMCEvent event) |
void |
handle(cpw.mods.fml.common.event.FMLInterModComms.IMCMessage message) |
void |
registerAction(java.lang.String key,
IMCHandler.IIMCAction action)
Register a new action for messages.
|
public void registerAction(java.lang.String key,
IMCHandler.IIMCAction action)
key - The action key which will be used to distinguish messages.action - The action to execute when messages for that type are received.public void handle(cpw.mods.fml.common.event.FMLInterModComms.IMCEvent event)
public void handle(cpw.mods.fml.common.event.FMLInterModComms.IMCMessage message)