Class WrapperPlayServerBlockChange
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerBlockChange
Fired whenever a block is changed within the render distance.
-
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 valuesWrapperPlayServerBlockChange(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptioncom.comphenix.protocol.wrappers.WrappedBlockDataRetrieves the new block statecom.comphenix.protocol.wrappers.BlockPositiongetPos()Retrieves the position of the block.voidsetBlockState(com.comphenix.protocol.wrappers.WrappedBlockData value) Sets the new block statevoidsetPos(com.comphenix.protocol.wrappers.BlockPosition value) Sets the position of the blockMethods 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
-
WrapperPlayServerBlockChange
public WrapperPlayServerBlockChange()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerBlockChange
public WrapperPlayServerBlockChange(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet- the packet to wrap
-
-
Method Details
-
getPos
public com.comphenix.protocol.wrappers.BlockPosition getPos()Retrieves the position of the block.- Returns:
- position of block
-
setPos
public void setPos(com.comphenix.protocol.wrappers.BlockPosition value) Sets the position of the block- Parameters:
value- position of block
-
getBlockState
public com.comphenix.protocol.wrappers.WrappedBlockData getBlockState()Retrieves the new block state- Returns:
- 'blockState'
-
setBlockState
public void setBlockState(com.comphenix.protocol.wrappers.WrappedBlockData value) Sets the new block state- Parameters:
value- New value for field 'blockState'
-