13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::REMOVE_VOLUME_ENTITY_PACKET;
22 private int $entityNetId;
23 private int $dimension;
28 public static function create(
int $entityNetId,
int $dimension) : self{
30 $result->entityNetId = $entityNetId;
31 $result->dimension = $dimension;
35 public function getEntityNetId() : int{ return $this->entityNetId; }
37 public function getDimension() : int{ return $this->dimension; }
40 $this->entityNetId = $in->getUnsignedVarInt();
45 $out->putUnsignedVarInt($this->entityNetId);
50 return $handler->handleRemoveVolumeEntity($this);
decodePayload(PacketSerializer $in)
encodePayload(PacketSerializer $out)
static create(int $entityNetId, int $dimension)
handle(PacketHandlerInterface $handler)