MushroomBlockType
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
- $enumName : string
- $nextId : int|null
- $runtimeId : int
- ALL_CAP() : MushroomBlockType
- CAP_EAST() : MushroomBlockType
- CAP_MIDDLE() : MushroomBlockType
- CAP_NORTH() : MushroomBlockType
- CAP_NORTHEAST() : MushroomBlockType
- CAP_NORTHWEST() : MushroomBlockType
- CAP_SOUTH() : MushroomBlockType
- CAP_SOUTHEAST() : MushroomBlockType
- CAP_SOUTHWEST() : MushroomBlockType
- CAP_WEST() : MushroomBlockType
- equals() : bool
- Returns whether the two objects are equivalent.
- getAll() : array<string|int, self>
- Returns all members of the enum.
- 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
- PORES() : MushroomBlockType
- register() : void
- Registers the given object as an enum member.
- registerAll() : void
- setup() : void
- __construct() : mixed
Properties
$enumName
private
string
$enumName
$nextId
private
static int|null
$nextId
= null
$runtimeId
private
int
$runtimeId
Methods
ALL_CAP()
public
static ALL_CAP() : MushroomBlockType
Return values
MushroomBlockType —CAP_EAST()
public
static CAP_EAST() : MushroomBlockType
Return values
MushroomBlockType —CAP_MIDDLE()
public
static CAP_MIDDLE() : MushroomBlockType
Return values
MushroomBlockType —CAP_NORTH()
public
static CAP_NORTH() : MushroomBlockType
Return values
MushroomBlockType —CAP_NORTHEAST()
public
static CAP_NORTHEAST() : MushroomBlockType
Return values
MushroomBlockType —CAP_NORTHWEST()
public
static CAP_NORTHWEST() : MushroomBlockType
Return values
MushroomBlockType —CAP_SOUTH()
public
static CAP_SOUTH() : MushroomBlockType
Return values
MushroomBlockType —CAP_SOUTHEAST()
public
static CAP_SOUTHEAST() : MushroomBlockType
Return values
MushroomBlockType —CAP_SOUTHWEST()
public
static CAP_SOUTHWEST() : MushroomBlockType
Return values
MushroomBlockType —CAP_WEST()
public
static CAP_WEST() : MushroomBlockType
Return values
MushroomBlockType —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> —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 —PORES()
public
static PORES() : MushroomBlockType
Return values
MushroomBlockType —register()
Registers the given object as an enum member.
protected
static register(self $member) : void
Parameters
- $member : self
Tags
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) : mixed
Parameters
- $enumName : string