class InteractPacket extends DataPacket{ public static $pool = []; public static $next = 0; public $action; public $eid; public $target; public function pid(){ return Info::INTERACT_PACKET; } public function decode(){ $this->action = $this->getByte(); $this->eid = $this->getInt(); $this->target = $this->getInt(); } public function encode(){ $this->reset(); $this->putByte($this->action); $this->putLong($this->eid); $this->putLong($this->target); } }