Class InterModComms.IMCMessage

java.lang.Object
net.minecraftforge.fml.InterModComms.IMCMessage
Enclosing class:
InterModComms

public static final class InterModComms.IMCMessage extends Object
  • Field Details

    • modId

      private final String modId
    • method

      private final String method
    • senderModId

      private final String senderModId
    • thing

      private final Supplier<?> thing
  • Constructor Details

  • Method Details

    • getSenderModId

      public final String getSenderModId()
      Returns:
      The modid of the sender. This is supplied by the caller, or by the active mod container context. Consider it unreliable.
    • getModId

      public final String getModId()
      Returns:
      The modid being sent to.
    • getMethod

      public final String getMethod()
      Returns:
      The method being sent to.
    • getMessageSupplier

      public final <T> Supplier<T> getMessageSupplier()
      Type Parameters:
      T - The type of the message.
      Returns:
      A Supplier of the message.