Class WrapperPlayServerServerData
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerServerData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketTypeThe 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 valuesWrapperPlayServerServerData(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the value of field 'enforcesSecureChat'Optional<byte[]>Retrieves the value of field 'iconBytes'com.comphenix.protocol.wrappers.WrappedChatComponentgetMotd()Retrieves the value of field 'motd'voidsetEnforcesSecureChat(boolean value) Sets the value of field 'enforcesSecureChat'voidsetIconBytes(byte[] value) Sets the value of field 'iconBytes'voidsetMotd(com.comphenix.protocol.wrappers.WrappedChatComponent value) Sets the value of field 'motd'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
-
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
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'
-