Class WrapperPlayServerCustomPayload
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerCustomPayload
-
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 valuesWrapperPlayServerCustomPayload
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBuf
getData()
Retrieves the value of field 'data'com.comphenix.protocol.wrappers.MinecraftKey
Retrieves the value of field 'identifier'void
setData
(io.netty.buffer.ByteBuf value) Sets the value of field 'data'void
setIdentifier
(com.comphenix.protocol.wrappers.MinecraftKey value) Sets the value of field 'identifier'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
-
WrapperPlayServerCustomPayload
public WrapperPlayServerCustomPayload()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerCustomPayload
public WrapperPlayServerCustomPayload(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getIdentifier
public com.comphenix.protocol.wrappers.MinecraftKey getIdentifier()Retrieves the value of field 'identifier'- Returns:
- 'identifier'
-
setIdentifier
public void setIdentifier(com.comphenix.protocol.wrappers.MinecraftKey value) Sets the value of field 'identifier'- Parameters:
value
- New value for field 'identifier'
-
getData
public io.netty.buffer.ByteBuf getData()Retrieves the value of field 'data'- Returns:
- 'data'
-
setData
public void setData(io.netty.buffer.ByteBuf value) Sets the value of field 'data'- Parameters:
value
- New value for field 'data'
-