|
Phpcraft
|


Public Member Functions | |
| getId (int $protocol_version) | |
| getClass () | |
Public Member Functions inherited from Phpcraft\Packet\PacketId | |
| getInstance (?Connection $con=null) | |
Static Public Member Functions | |
| static | get (string $name) |
Static Public Member Functions inherited from Phpcraft\Identifier | |
| static | getById (int $id, int $protocol_version) |
| static | all () |
Static Protected Member Functions | |
| static | populateAllCache () |
| static | nameMap () |
Static Protected Member Functions inherited from Phpcraft\Packet\PacketId | |
| static | populateAllCache_ (string $key) |
Static Protected Attributes | |
| static | $all_cache |
Static Protected Attributes inherited from Phpcraft\Packet\PacketId | |
| static | $all_cache |
Static Protected Attributes inherited from Phpcraft\Identifier | |
| static | $all_cache |
Additional Inherited Members | |
Public Attributes inherited from Phpcraft\Identifier | |
| $name | |
| $since_protocol_version | |
Protected Member Functions inherited from Phpcraft\Packet\PacketId | |
| _getId (int $protocol_version, string $key) | |
Protected Member Functions inherited from Phpcraft\Identifier | |
| __construct (string $name, int $since_protocol_version) | |
The class for the IDs of packets sent to the server.
|
static |
Returns a ServerboundPacketId by its name or null if not found. If you call ServerboundPacketId::get() instead of PacketId::get() you may drop the leading "serverbound_" from applicable packet ids.
| string | $name |
Reimplemented from Phpcraft\Identifier.
| Phpcraft\Packet\ServerboundPacketId::getClass | ( | ) |
Returns the packet's class or null if the packet does not have a class implementation yet.
Reimplemented from Phpcraft\Packet\PacketId.
| Phpcraft\Packet\ServerboundPacketId::getId | ( | int | $protocol_version | ) |
Returns the ID of this Identifier for the given protocol version or null if not applicable.
| int | $protocol_version |
Reimplemented from Phpcraft\Identifier.
|
staticprotected |
Reimplemented from Phpcraft\Packet\PacketId.
|
staticprotected |
Reimplemented from Phpcraft\Packet\PacketId.
|
staticprotected |
1.8.17