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

Public Member Functions

 __construct (string $name, int $id, int $since_protocol_version=0)
 
 getId (int $protocol_version)
 

Public Attributes

 $id
 
- Public Attributes inherited from Phpcraft\Identifier
 $name
 
 $since_protocol_version
 

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 ()
 
- Protected Member Functions inherited from Phpcraft\Identifier
 __construct (string $name, int $since_protocol_version)
 

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\EffectType::__construct ( string  $name,
int  $id,
int  $since_protocol_version = 0 
)

Member Function Documentation

◆ getId()

Phpcraft\EffectType::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.

◆ populateAllCache()

static Phpcraft\EffectType::populateAllCache ( )
staticprotected
Returns
void

Reimplemented from Phpcraft\Identifier.

Member Data Documentation

◆ $all_cache

Phpcraft\EffectType::$all_cache
staticprotected

◆ $id

int Phpcraft\EffectType::$id

The effect's ID.