Class WrapperPlayServerSystemChat
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerSystemChat
-
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 valuesWrapperPlayServerSystemChat
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the message to be sent encoded as a JSON stringcom.comphenix.protocol.wrappers.WrappedChatComponent
Gets the content of the system message as a chat componentboolean
Retrieves the value of field 'overlay'void
setContent
(String value) Sets the message content as a JSON encoded stringvoid
setContentComponent
(com.comphenix.protocol.wrappers.WrappedChatComponent component) Sets the content of the system messagevoid
setOverlay
(boolean value) Sets the value of field 'overlay'Methods 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
-
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
Retrieves the message to be sent encoded as a JSON string- Returns:
- 'content' as JSON string
-
setContent
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'
-