Class WrapperPlayServerServerData

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

public class WrapperPlayServerServerData extends AbstractPacket
  • Field Details

    • TYPE

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

    • WrapperPlayServerServerData

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

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

    • getMotd

      public com.comphenix.protocol.wrappers.WrappedChatComponent getMotd()
      Retrieves the value of field 'motd'
      Returns:
      'motd'
    • setMotd

      public void setMotd(com.comphenix.protocol.wrappers.WrappedChatComponent value)
      Sets the value of field 'motd'
      Parameters:
      value - New value for field 'motd'
    • getIconBytes

      public Optional<byte[]> getIconBytes()
      Retrieves the value of field 'iconBytes'
      Returns:
      'iconBytes'
    • setIconBytes

      public void setIconBytes(@Nullable byte[] value)
      Sets the value of field 'iconBytes'
      Parameters:
      value - New value for field 'iconBytes'
    • getEnforcesSecureChat

      public boolean getEnforcesSecureChat()
      Retrieves the value of field 'enforcesSecureChat'
      Returns:
      'enforcesSecureChat'
    • setEnforcesSecureChat

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