Class WrapperPlayServerBlockChange

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerBlockChange

public class WrapperPlayServerBlockChange extends AbstractPacket
Fired whenever a block is changed within the render distance.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    Constructs a new wrapper and initialize it with a packet handle with default values
    WrapperPlayServerBlockChange(com.comphenix.protocol.events.PacketContainer packet)
    Constructors a new wrapper for the specified packet
  • Method Summary

    Modifier and Type
    Method
    Description
    com.comphenix.protocol.wrappers.WrappedBlockData
    Retrieves the new block state
    com.comphenix.protocol.wrappers.BlockPosition
    Retrieves the position of the block.
    void
    setBlockState(com.comphenix.protocol.wrappers.WrappedBlockData value)
    Sets the new block state
    void
    setPos(com.comphenix.protocol.wrappers.BlockPosition value)
    Sets the position of the block

    Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket

    broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The 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'