Class WrapperPlayServerSystemChat

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerSystemChat

public class WrapperPlayServerSystemChat extends AbstractPacket
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The packet type that is wrapped by this wrapper.
  • Constructor Details

    • WrapperPlayServerSystemChat

      public WrapperPlayServerSystemChat()
      Constructs a new wrapper and initialize it with a packet handle with default values
    • WrapperPlayServerSystemChat

      public WrapperPlayServerSystemChat(com.comphenix.protocol.events.PacketContainer packet)
      Constructors a new wrapper for the specified packet
      Parameters:
      packet - the packet to wrap
  • Method Details

    • getContent

      public String getContent()
      Retrieves the message to be sent encoded as a JSON string
      Returns:
      'content' as JSON string
    • setContent

      public void setContent(String value)
      Sets the message content as a JSON encoded string
      Parameters:
      value - New value for field 'content'
    • getContentComponent

      public com.comphenix.protocol.wrappers.WrappedChatComponent getContentComponent()
      Gets the content of the system message as a chat component
      Returns:
      content of the system message
    • setContentComponent

      public void setContentComponent(com.comphenix.protocol.wrappers.WrappedChatComponent component)
      Sets the content of the system message
      Parameters:
      component - content of the system message
    • getOverlay

      public boolean getOverlay()
      Retrieves the value of field 'overlay'
      Returns:
      'overlay'
    • setOverlay

      public void setOverlay(boolean value)
      Sets the value of field 'overlay'
      Parameters:
      value - New value for field 'overlay'