13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::SIMULATION_TYPE_PACKET;
22 public const GAME = 0;
23 public const EDITOR = 1;
24 public const TEST = 2;
31 public static function create(
int $type) : self{
33 $result->type = $type;
37 public function getType() : int{ return $this->type; }
40 $this->type = $in->getByte();
44 $out->putByte($this->type);
48 return $handler->handleSimulationType($this);
decodePayload(PacketSerializer $in)
handle(PacketHandlerInterface $handler)
encodePayload(PacketSerializer $out)