Class IMCHandler
java.lang.Object
org.cyclops.cyclopscore.modcompat.IMCHandler
Handler for
InterModCommss.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(net.neoforged.fml.InterModComms.IMCMessage message) voidregisterAction(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.neoforged.fml.InterModComms.IMCMessage message)
-