Class WrapperPlayServerPlayerListHeaderFooter
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerPlayerListHeaderFooter
Sents by server to client to update the header and footer in the tab list
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerPlayerListHeaderFooter
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptioncom.comphenix.protocol.wrappers.WrappedChatComponent
Retrieves the component that will be displayed below the tab listcom.comphenix.protocol.wrappers.WrappedChatComponent
Retrieves the component that will be displayed above the tab listvoid
setFooter
(com.comphenix.protocol.wrappers.WrappedChatComponent value) Sets the component that will be displayed below the tab listvoid
setHeader
(com.comphenix.protocol.wrappers.WrappedChatComponent value) Sets the component that will be displayed above the tab listMethods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe 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'
-