Class ClajTextMessagePacket

java.lang.Object
com.xpdustry.claj.common.packets.ClajTextMessagePacket
All Implemented Interfaces:
Packet
Direct Known Subclasses:
ClajPopupPacket

public class ClajTextMessagePacket extends Object implements Packet
Note that the text will be truncated to 1024 characters.
  • Field Details

    • message

      public String message
  • Constructor Details

    • ClajTextMessagePacket

      public ClajTextMessagePacket()
  • Method Details

    • read

      public void read(arc.util.io.ByteBufferInput read)
      Specified by:
      read in interface Packet
    • write

      public void write(arc.util.io.ByteBufferOutput write)
      Specified by:
      write in interface Packet
    • allow

      public boolean allow(boolean isServer)
      Specified by:
      allow in interface Packet
      Returns:
      whether this packet should be allowed or ignored, for the type of endpoint.