PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
CommandOriginData.php
1<?php
2
3/*
4 * This file is part of BedrockProtocol.
5 * Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/BedrockProtocol>
6 *
7 * BedrockProtocol is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 */
12
13declare(strict_types=1);
14
15namespace pocketmine\network\mcpe\protocol\types\command;
16
17use Ramsey\Uuid\UuidInterface;
18
20 public const ORIGIN_PLAYER = 0;
21 public const ORIGIN_BLOCK = 1;
22 public const ORIGIN_MINECART_BLOCK = 2;
23 public const ORIGIN_DEV_CONSOLE = 3;
24 public const ORIGIN_TEST = 4;
25 public const ORIGIN_AUTOMATION_PLAYER = 5;
26 public const ORIGIN_CLIENT_AUTOMATION = 6;
27 public const ORIGIN_DEDICATED_SERVER = 7;
28 public const ORIGIN_ENTITY = 8;
29 public const ORIGIN_VIRTUAL = 9;
30 public const ORIGIN_GAME_ARGUMENT = 10;
31 public const ORIGIN_ENTITY_SERVER = 11; //???
32
33 public int $type;
34 public UuidInterface $uuid;
35 public string $requestId;
36 public int $playerActorUniqueId;
37}