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:
@ -35,7 +35,8 @@ class SpawnExperienceOrbPacket extends DataPacket{
|
||||
public $amount;
|
||||
|
||||
public function decode(){
|
||||
|
||||
$this->getVector3f($this->x, $this->y, $this->z);
|
||||
$this->amount = $this->getVarInt();
|
||||
}
|
||||
|
||||
public function encode(){
|
||||
|
Reference in New Issue
Block a user