Class IMCHandler
java.lang.Object
org.cyclops.cyclopscore.modcompat.IMCHandler
Handler for
InterModComms
s.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(net.minecraftforge.fml.InterModComms.IMCMessage message) void
registerAction
(String key, IMCHandler.IIMCAction action) Register a new action for messages.
-
Field Details
-
mod
-
-
Constructor Details
-
IMCHandler
-
-
Method Details
-
registerAction
Register a new action for messages.- Parameters:
key
- The action key which will be used to distinguish messages.action
- The action to execute when messages for that type are received.
-
handle
public void handle(net.minecraftforge.fml.InterModComms.IMCMessage message)
-