mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Added encode and decode methods for more packets
This commit is contained in:
@ -39,7 +39,9 @@ class ChangeDimensionPacket extends DataPacket{
|
||||
public $unknown; //bool
|
||||
|
||||
public function decode(){
|
||||
|
||||
$this->dimension = $this->getVarInt();
|
||||
$this->getVector3f($this->x, $this->y, $this->z);
|
||||
$this->unknown = $this->getBool();
|
||||
}
|
||||
|
||||
public function encode(){
|
||||
|
Reference in New Issue
Block a user