class PlayerEquipmentPacket extends DataPacket{ public static $pool = []; public static $next = 0; public $eid; public $item; public $meta; public $slot; public function pid(){ return Info::PLAYER_EQUIPMENT_PACKET; } public function decode(){ $this->eid = $this->getLong(); $this->item = $this->getShort(); $this->meta = $this->getShort(); $this->slot = $this->getByte(); } public function encode(){ $this->reset(); $this->putLong($this->eid); $this->putShort($this->item); $this->putShort($this->meta); $this->putByte($this->slot); } }