13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
22 public const NETWORK_ID = ProtocolInfo::STRUCTURE_BLOCK_UPDATE_PACKET;
26 public bool $isPowered;
27 public bool $waterlogged;
34 $result->blockPosition = $blockPosition;
35 $result->structureEditorData = $structureEditorData;
36 $result->isPowered = $isPowered;
37 $result->waterlogged = $waterlogged;
42 $this->blockPosition = $in->getBlockPosition();
43 $this->structureEditorData = $in->getStructureEditorData();
44 $this->isPowered = $in->
getBool();
45 $this->waterlogged = $in->
getBool();
49 $out->putBlockPosition($this->blockPosition);
50 $out->putStructureEditorData($this->structureEditorData);
51 $out->putBool($this->isPowered);
52 $out->putBool($this->waterlogged);
56 return $handler->handleStructureBlockUpdate($this);
decodePayload(PacketSerializer $in)
encodePayload(PacketSerializer $out)
handle(PacketHandlerInterface $handler)
static create(BlockPosition $blockPosition, StructureEditorData $structureEditorData, bool $isPowered, bool $waterlogged)