|
Phpcraft
|


Public Member Functions | |
| getInstance (?Connection $con=null) | |
| getClass () | |
Public Member Functions inherited from Phpcraft\Identifier | |
| getId (int $protocol_version) | |
Protected Member Functions | |
| _getId (int $protocol_version, string $key) | |
Protected Member Functions inherited from Phpcraft\Identifier | |
| __construct (string $name, int $since_protocol_version) | |
Static Protected Member Functions | |
| static | populateAllCache () |
| static | populateAllCache_ (string $key) |
| static | nameMap () |
Static Protected Attributes | |
| static | $all_cache |
Static Protected Attributes inherited from Phpcraft\Identifier | |
| static | $all_cache |
Additional Inherited Members | |
Static Public Member Functions inherited from Phpcraft\Identifier | |
| static | get (string $name) |
| static | getById (int $id, int $protocol_version) |
| static | all () |
Public Attributes inherited from Phpcraft\Identifier | |
| $name | |
| $since_protocol_version | |
|
protected |
|
abstract |
Returns the packet's class or null if the packet does not have a class implementation yet.
Reimplemented in Phpcraft\Packet\ClientboundPacketId, and Phpcraft\Packet\ServerboundPacketId.
| Phpcraft\Packet\PacketId::getInstance | ( | ?Connection | $con = null | ) |
Initialises this packet's class, optionally reading its payload from the given Connection. Returns null if the packet does not have a class implementation yet.
| Connection | null | $con |
| IOException |
|
staticabstractprotected |
Reimplemented in Phpcraft\Packet\ServerboundPacketId, and Phpcraft\Packet\ClientboundPacketId.
|
staticprotected |
Reimplemented from Phpcraft\Identifier.
Reimplemented in Phpcraft\Packet\ServerboundPacketId, and Phpcraft\Packet\ClientboundPacketId.
|
staticprotected |
|
staticprotected |
1.8.17