Renamed BlockEventPacket fields

This commit is contained in:
Dylan K. Taylor
2017-10-16 19:55:42 +01:00
parent f4ff5d81ea
commit f14b7cbf78
2 changed files with 8 additions and 8 deletions

View File

@ -38,20 +38,20 @@ class BlockEventPacket extends DataPacket{
/** @var int */
public $z;
/** @var int */
public $case1;
public $eventType;
/** @var int */
public $case2;
public $eventData;
protected function decodePayload(){
$this->getBlockPosition($this->x, $this->y, $this->z);
$this->case1 = $this->getVarInt();
$this->case2 = $this->getVarInt();
$this->eventType = $this->getVarInt();
$this->eventData = $this->getVarInt();
}
protected function encodePayload(){
$this->putBlockPosition($this->x, $this->y, $this->z);
$this->putVarInt($this->case1);
$this->putVarInt($this->case2);
$this->putVarInt($this->eventType);
$this->putVarInt($this->eventData);
}
public function handle(NetworkSession $session) : bool{