13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
21 public const NETWORK_ID = ProtocolInfo::LAB_TABLE_PACKET;
23 public const TYPE_START_COMBINE = 0;
24 public const TYPE_START_REACTION = 1;
25 public const TYPE_RESET = 2;
27 public int $actionType;
29 public int $reactionType;
34 public static function create(
int $actionType,
BlockPosition $blockPosition,
int $reactionType) : self{
36 $result->actionType = $actionType;
37 $result->blockPosition = $blockPosition;
38 $result->reactionType = $reactionType;
43 $this->actionType = $in->getByte();
45 $this->reactionType = $in->
getByte();
49 $out->putByte($this->actionType);
51 $out->putByte($this->reactionType);
55 return $handler->handleLabTable($this);
static create(int $actionType, BlockPosition $blockPosition, int $reactionType)
encodePayload(PacketSerializer $out)
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)
putSignedBlockPosition(BlockPosition $blockPosition)