mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Added encode and decode methods for more packets
This commit is contained in:
@ -36,7 +36,9 @@ class BlockEventPacket extends DataPacket{
|
||||
public $case2;
|
||||
|
||||
public function decode(){
|
||||
|
||||
$this->getBlockPosition($this->x, $this->y, $this->z);
|
||||
$this->case1 = $this->getVarInt();
|
||||
$this->case2 = $this->getVarInt();
|
||||
}
|
||||
|
||||
public function encode(){
|
||||
|
Reference in New Issue
Block a user