PROTOCOL < ProtocolInfo::CURRENT_PROTOCOL){ return ProtocolInfo12::TILE_EVENT_PACKET; } return ProtocolInfo::TILE_EVENT_PACKET; } public function decode(){ } public function encode(){ $this->reset(); $this->putInt($this->x); $this->putInt($this->y); $this->putInt($this->z); $this->putInt($this->case1); $this->putInt($this->case2); } }