Class MessageType

java.lang.Object
dev.architectury.networking.simple.MessageType

public final class MessageType extends Object
A unique type for a message in a SimpleNetworkManager.
  • Method Details

    • getManager

      public SimpleNetworkManager getManager()
      Returns the network manager that manages this message type
      Returns:
      the network manager that manages this message type
    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Returns the ID of this message type
      Returns:
      the ID of this message type
    • getSide

      public NetworkManager.Side getSide()
      Returns the network side of this message type
      Returns:
      the network side of this message type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object