use pocketmine\network\mcpe\NetworkSession; class RemoveBlockPacket extends DataPacket{ const NETWORK_ID = ProtocolInfo::REMOVE_BLOCK_PACKET; public $x; public $y; public $z; public function decode(){ $this->getBlockPosition($this->x, $this->y, $this->z); } public function encode(){ $this->reset(); $this->putBlockPosition($this->x, $this->y, $this->z); } public function handle(NetworkSession $session) : bool{ return $session->handleRemoveBlock($this); } }