Class IMCHandler

java.lang.Object
org.cyclops.cyclopscore.modcompat.IMCHandler

public class IMCHandler extends Object
Handler for InterModCommss.
  • Field Details

    • mod

      protected final ModBase mod
  • Constructor Details

    • IMCHandler

      public IMCHandler(ModBase mod)
  • Method Details

    • registerAction

      public void registerAction(String key, IMCHandler.IIMCAction action)
      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)