1: <?php declare(strict_types=1);
2:
3: /**
4: * Clansuite Server Query
5: *
6: * SPDX-FileCopyrightText: 2003-2025 Jens A. Koch
7: * SPDX-License-Identifier: MIT
8: *
9: * For the full copyright and license information, please view
10: * the LICENSE file that was distributed with this source code.
11: */
12:
13: namespace Clansuite\ServerQuery\ServerProtocols;
14:
15: /**
16: * Minecraft Pocket Edition protocol implementation.
17: *
18: * Minecraft Pocket Edition uses the Minecraft protocol with different protocol version.
19: */
20: class Minecraftpe extends Minecraft
21: {
22: /**
23: * Protocol name.
24: */
25: public string $name = 'Minecraft Pocket Edition';
26:
27: /**
28: * List of supported games.
29: *
30: * @var array<string>
31: */
32: public array $supportedGames = ['Minecraft Pocket Edition'];
33:
34: /**
35: * Protocol identifier.
36: */
37: public string $protocol = 'minecraft';
38:
39: /**
40: * Game series.
41: *
42: * @var array<string>
43: */
44: public array $game_series_list = ['Minecraft Pocket Edition'];
45:
46: /**
47: * Port adjustment if needed (default 0).
48: */
49: protected int $port_diff = 0;
50:
51: /**
52: * Constructor.
53: */
54: public function __construct(?string $address = null, ?int $queryport = null, string $protocolVersion = 'slp')
55: {
56: parent::__construct($address, $queryport, $protocolVersion);
57: }
58: }
59: