diff --git a/src/CameraInstructionPacket.php b/src/CameraInstructionPacket.php index 1f1f3db7..1871e9e0 100644 --- a/src/CameraInstructionPacket.php +++ b/src/CameraInstructionPacket.php @@ -49,6 +49,8 @@ public function getFade() : ?CameraFadeInstruction{ return $this->fade; } public function getTarget() : ?CameraTargetInstruction{ return $this->target; } + public function getRemoveTarget() : ?bool{ return $this->removeTarget; } + protected function decodePayload(PacketSerializer $in) : void{ $this->set = $in->readOptional(fn() => CameraSetInstruction::read($in)); $this->clear = $in->readOptional($in->getBool(...)); diff --git a/src/ChangeDimensionPacket.php b/src/ChangeDimensionPacket.php index 6e2cdd34..dd2f12ae 100644 --- a/src/ChangeDimensionPacket.php +++ b/src/ChangeDimensionPacket.php @@ -37,6 +37,8 @@ public static function create(int $dimension, Vector3 $position, bool $respawn, return $result; } + public function getLoadingScreenId() : ?int{ return $this->loadingScreenId; } + protected function decodePayload(PacketSerializer $in) : void{ $this->dimension = $in->getVarInt(); $this->position = $in->getVector3(); diff --git a/src/UpdateClientInputLocksPacket.php b/src/UpdateClientInputLocksPacket.php index 25a6f098..add3e60b 100644 --- a/src/UpdateClientInputLocksPacket.php +++ b/src/UpdateClientInputLocksPacket.php @@ -33,6 +33,10 @@ public static function create(int $flags, Vector3 $position) : self{ return $result; } + public function getFlags() : int{ return $this->flags; } + + public function getPosition() : Vector3{ return $this->position; } + protected function decodePayload(PacketSerializer $in) : void{ $this->flags = $in->getUnsignedVarInt(); $this->position = $in->getVector3();