13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
21 public const NETWORK_ID = ProtocolInfo::BLOCK_EVENT_PACKET;
24 public int $eventType;
25 public int $eventData;
32 $result->blockPosition = $blockPosition;
33 $result->eventType = $eventType;
34 $result->eventData = $eventData;
39 $this->blockPosition = $in->getBlockPosition();
45 $out->putBlockPosition($this->blockPosition);
51 return $handler->handleBlockEvent($this);
encodePayload(PacketSerializer $out)
static create(BlockPosition $blockPosition, int $eventType, int $eventData)
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)