Class WrapperPlayServerMultiBlockChange
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerMultiBlockChange
Send by server to client when 2 or more blocks are changed within the same chunk on the same tick.
-
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 valuesWrapperPlayServerMultiBlockChange
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionshort[]
Retrieves the value of field 'positions'com.comphenix.protocol.wrappers.BlockPosition
Retrieves the value of field 'sectionPos'com.comphenix.protocol.wrappers.WrappedBlockData[]
Retrieves the value of field 'states'boolean
Deprecated.Removed in 1.20void
setPositions
(short[] value) Sets the value of field 'positions'void
setSectionPos
(com.comphenix.protocol.wrappers.BlockPosition value) Sets the value of field 'sectionPos'void
setStates
(com.comphenix.protocol.wrappers.WrappedBlockData[] value) Sets the value of field 'states'void
setSuppressLightUpdates
(boolean value) Deprecated.Removed in 1.20Methods 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
-
WrapperPlayServerMultiBlockChange
public WrapperPlayServerMultiBlockChange()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerMultiBlockChange
public WrapperPlayServerMultiBlockChange(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getSectionPos
public com.comphenix.protocol.wrappers.BlockPosition getSectionPos()Retrieves the value of field 'sectionPos'- Returns:
- 'sectionPos'
-
setSectionPos
public void setSectionPos(com.comphenix.protocol.wrappers.BlockPosition value) Sets the value of field 'sectionPos'- Parameters:
value
- New value for field 'sectionPos'
-
getPositions
public short[] getPositions()Retrieves the value of field 'positions'- Returns:
- 'positions'
-
setPositions
public void setPositions(short[] value) Sets the value of field 'positions'- Parameters:
value
- New value for field 'positions'
-
getStates
public com.comphenix.protocol.wrappers.WrappedBlockData[] getStates()Retrieves the value of field 'states'- Returns:
- 'states'
-
setStates
public void setStates(com.comphenix.protocol.wrappers.WrappedBlockData[] value) Sets the value of field 'states'- Parameters:
value
- New value for field 'states'
-
getSuppressLightUpdates
Deprecated.Removed in 1.20Retrieves the value of field 'suppressLightUpdates'- Returns:
- 'suppressLightUpdates'
-
setSuppressLightUpdates
Deprecated.Removed in 1.20Sets the value of field 'suppressLightUpdates'- Parameters:
value
- New value for field 'suppressLightUpdates'
-