Phpcraft
|
Public Member Functions | |
getId (int $protocol_version) | |
Static Public Member Functions | |
static | get (string $name) |
static | getById (int $id, int $protocol_version) |
static | all () |
Public Attributes | |
$name | |
$since_protocol_version | |
Protected Member Functions | |
__construct (string $name, int $since_protocol_version) | |
Static Protected Member Functions | |
static | populateAllCache () |
Static Protected Attributes | |
static | $all_cache |
|
protected |
Reimplemented in Phpcraft\Entity\EntityType.
|
static |
Returns everything of this type.
|
static |
Returns an Identifier by its name or null if not found.
string | $name |
Reimplemented in Phpcraft\Packet\ClientboundPacketId, and Phpcraft\Packet\ServerboundPacketId.
|
static |
Returns an Identifier by its ID in the given protocol version or null if not found.
int | $id | |
int | $protocol_version |
|
abstract |
Returns the ID of this Identifier for the given protocol version or null if not applicable.
int | $protocol_version |
Reimplemented in Phpcraft\Entity\EntityType, Phpcraft\Item, Phpcraft\Packet\ClientboundPacketId, Phpcraft\EffectType, and Phpcraft\Packet\ServerboundPacketId.
|
staticabstractprotected |
|
staticprotected |
string Phpcraft\Identifier::$name |
The name of this Identifier.
int Phpcraft\Identifier::$since_protocol_version |
The protocol version at which this Identifier was introduced.