SkullType
in package
Uses
EnumTrait
This doc-block is generated automatically, do not modify it manually.
This must be regenerated whenever registry members are added, removed or changed.
Tags
Table of Contents
- $displayName : string
- $enumName : string
- $magicNumber : int
- $nextId : int|null
- $numericIdMap : array<string|int, SkullType>
- $runtimeId : int
- CREEPER() : SkullType
- DRAGON() : SkullType
- equals() : bool
- Returns whether the two objects are equivalent.
- getAll() : array<string|int, self>
- Returns all members of the enum.
- getDisplayName() : string
- getMagicNumber() : int
- id() : int
- Returns a runtime-only identifier for this enum member. This will be different with each run, so don't try to hardcode it.
- name() : string
- PLAYER() : SkullType
- SKELETON() : SkullType
- WITHER_SKELETON() : SkullType
- ZOMBIE() : SkullType
- register() : void
- registerAll() : void
- setup() : void
- __construct() : mixed
Properties
$displayName
private
string
$displayName
$enumName
private
string
$enumName
$magicNumber
private
int
$magicNumber
$nextId
private
static int|null
$nextId
= null
$numericIdMap
private
static array<string|int, SkullType>
$numericIdMap
= []
$runtimeId
private
int
$runtimeId
Methods
CREEPER()
public
static CREEPER() : SkullType
Return values
SkullType —DRAGON()
public
static DRAGON() : SkullType
Return values
SkullType —equals()
Returns whether the two objects are equivalent.
public
equals(self $other) : bool
Parameters
- $other : self
Return values
bool —getAll()
Returns all members of the enum.
public
static getAll() : array<string|int, self>
This is overridden to change the return typehint.
Return values
array<string|int, self> —getDisplayName()
public
getDisplayName() : string
Return values
string —getMagicNumber()
public
getMagicNumber() : int
Return values
int —id()
Returns a runtime-only identifier for this enum member. This will be different with each run, so don't try to hardcode it.
public
id() : int
This can be useful for switches or array indexing.
Return values
int —name()
public
name() : string
Return values
string —PLAYER()
public
static PLAYER() : SkullType
Return values
SkullType —SKELETON()
public
static SKELETON() : SkullType
Return values
SkullType —WITHER_SKELETON()
public
static WITHER_SKELETON() : SkullType
Return values
SkullType —ZOMBIE()
public
static ZOMBIE() : SkullType
Return values
SkullType —register()
protected
static register(SkullType $type) : void
Parameters
- $type : SkullType
Return values
void —registerAll()
protected
static registerAll(self ...$members) : void
Parameters
- $members : self
Return values
void —setup()
protected
static setup() : void
Return values
void —__construct()
private
__construct(string $enumName, string $displayName, int $magicNumber) : mixed
Parameters
- $enumName : string
- $displayName : string
- $magicNumber : int