class EntityEventPacket extends DataPacket{ public static $pool = []; public static $next = 0; public $eid; public $event; public function pid(){ return Info::ENTITY_EVENT_PACKET; } public function decode(){ $this->eid = $this->getLong(); $this->event = $this->getByte(); } public function encode(){ $this->reset(); $this->putLong($this->eid); $this->putByte($this->event); } }