1.11.0 protocol changes

This commit is contained in:
Dylan K. Taylor
2019-04-24 19:54:16 +01:00
parent fc76d04dcb
commit fa70127241
16 changed files with 271 additions and 99 deletions

View File

@ -46,6 +46,8 @@ class ClientboundMapItemDataPacket extends DataPacket{
public $type;
/** @var int */
public $dimensionId = DimensionIds::OVERWORLD;
/** @var bool */
public $isLocked = false;
/** @var int[] */
public $eids = [];
@ -72,6 +74,7 @@ class ClientboundMapItemDataPacket extends DataPacket{
$this->mapId = $this->getEntityUniqueId();
$this->type = $this->getUnsignedVarInt();
$this->dimensionId = $this->getByte();
$this->isLocked = $this->getBool();
if(($this->type & 0x08) !== 0){
$count = $this->getUnsignedVarInt();
@ -144,6 +147,7 @@ class ClientboundMapItemDataPacket extends DataPacket{
$this->putUnsignedVarInt($type);
$this->putByte($this->dimensionId);
$this->putBool($this->isLocked);
if(($type & 0x08) !== 0){ //TODO: find out what these are for
$this->putUnsignedVarInt($eidsCount);