Phpcraft
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
Phpcraft\Entity\EntityType Class Reference
Inheritance diagram for Phpcraft\Entity\EntityType:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\Entity\EntityType:
Collaboration graph
[legend]

Public Member Functions

 getId (int $protocol_version)
 
 getMetadata ()
 

Protected Member Functions

 __construct (string $name, int $since_protocol_version=0)
 

Static Protected Member Functions

static populateAllCache ()
 

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
 

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Entity\EntityType::__construct ( string  $name,
int  $since_protocol_version = 0 
)
protected

Reimplemented from Phpcraft\Identifier.

Member Function Documentation

◆ getId()

Phpcraft\Entity\EntityType::getId ( int  $protocol_version)

Returns the ID of this Identifier for the given protocol version or null if not applicable.

Parameters
int$protocol_version
Returns
int|null

Reimplemented from Phpcraft\Identifier.

◆ getMetadata()

Phpcraft\Entity\EntityType::getMetadata ( )

Returns an instance of the appropriate Entity\Metadata class for this entity type.

Returns
Metadata

◆ populateAllCache()

static Phpcraft\Entity\EntityType::populateAllCache ( )
staticprotected
Returns
void

Reimplemented from Phpcraft\Identifier.

Member Data Documentation

◆ $all_cache

Phpcraft\Entity\EntityType::$all_cache
staticprotected