class UseItemPacket extends DataPacket{ const NETWORK_ID = Info::USE_ITEM_PACKET; public $x; public $y; public $z; public $blockId; public $face; public $item; public $fx; public $fy; public $fz; public $posX; public $posY; public $posZ; public $slot; public function decode(){ $this->getBlockCoords($this->x, $this->y, $this->z); $this->blockId = $this->getUnsignedVarInt(); $this->face = $this->getVarInt(); $this->getVector3f($this->fx, $this->fy, $this->fz); $this->getVector3f($this->posX, $this->posY, $this->posZ); $this->slot = $this->getVarInt(); $this->item = $this->getSlot(); } public function encode(){ } }