Class WrapperPlayServerPlayerListHeaderFooter

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

public class WrapperPlayServerPlayerListHeaderFooter extends AbstractPacket
Sents by server to client to update the header and footer in the tab list
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.comphenix.protocol.PacketType
    The packet type that is wrapped by this wrapper.

    Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket

    handle
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new wrapper and initialize it with a packet handle with default values
    WrapperPlayServerPlayerListHeaderFooter(com.comphenix.protocol.events.PacketContainer packet)
    Constructors a new wrapper for the specified packet
  • Method Summary

    Modifier and Type
    Method
    Description
    com.comphenix.protocol.wrappers.WrappedChatComponent
    Retrieves the component that will be displayed below the tab list
    com.comphenix.protocol.wrappers.WrappedChatComponent
    Retrieves the component that will be displayed above the tab list
    void
    setFooter(com.comphenix.protocol.wrappers.WrappedChatComponent value)
    Sets the component that will be displayed below the tab list
    void
    setHeader(com.comphenix.protocol.wrappers.WrappedChatComponent value)
    Sets the component that will be displayed above the tab list

    Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket

    broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPE

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

    • WrapperPlayServerPlayerListHeaderFooter

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

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

    • getHeader

      public com.comphenix.protocol.wrappers.WrappedChatComponent getHeader()
      Retrieves the component that will be displayed above the tab list
      Returns:
      'header'
    • setHeader

      public void setHeader(com.comphenix.protocol.wrappers.WrappedChatComponent value)
      Sets the component that will be displayed above the tab list
      Parameters:
      value - New value for field 'header'
    • getFooter

      public com.comphenix.protocol.wrappers.WrappedChatComponent getFooter()
      Retrieves the component that will be displayed below the tab list
      Returns:
      'footer'
    • setFooter

      public void setFooter(com.comphenix.protocol.wrappers.WrappedChatComponent value)
      Sets the component that will be displayed below the tab list
      Parameters:
      value - New value for field 'footer'