Class WrapperPlayServerSetTitleText

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

public class WrapperPlayServerSetTitleText extends AbstractPacket
  • Field Details

    • TYPE

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

    • WrapperPlayServerSetTitleText

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

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

    • getText

      public com.comphenix.protocol.wrappers.WrappedChatComponent getText()
      Retrieves the main title as a chat component
      Returns:
      'text'
    • setText

      public void setText(com.comphenix.protocol.wrappers.WrappedChatComponent value)
      Sets the main title as a chat component
      Parameters:
      value - New value for field 'text'