13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
22 public const NETWORK_ID = ProtocolInfo::BLOCK_ACTOR_DATA_PACKET;
34 $result->blockPosition = $blockPosition;
40 $this->blockPosition = $in->getBlockPosition();
41 $this->nbt =
new CacheableNbt($in->getNbtCompoundRoot());
45 $out->putBlockPosition($this->blockPosition);
46 $out->put($this->nbt->getEncodedNbt());
50 return $handler->handleBlockActorData($this);
static create(BlockPosition $blockPosition, CacheableNbt $nbt)
encodePayload(PacketSerializer $out)
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)