PotionType
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
- $effectsGetter : Closure
- $enumName : string
- $nextId : int|null
- $runtimeId : int
- AWKWARD() : PotionType
- equals() : bool
- Returns whether the two objects are equivalent.
- FIRE_RESISTANCE() : PotionType
- getAll() : array<string|int, self>
- Returns all members of the enum.
- getDisplayName() : string
- getEffects() : array<string|int, EffectInstance>
- HARMING() : PotionType
- HEALING() : PotionType
- 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.
- INVISIBILITY() : PotionType
- LEAPING() : PotionType
- LONG_FIRE_RESISTANCE() : PotionType
- LONG_INVISIBILITY() : PotionType
- LONG_LEAPING() : PotionType
- LONG_MUNDANE() : PotionType
- LONG_NIGHT_VISION() : PotionType
- LONG_POISON() : PotionType
- LONG_REGENERATION() : PotionType
- LONG_SLOW_FALLING() : PotionType
- LONG_SLOWNESS() : PotionType
- LONG_STRENGTH() : PotionType
- LONG_SWIFTNESS() : PotionType
- LONG_TURTLE_MASTER() : PotionType
- LONG_WATER_BREATHING() : PotionType
- LONG_WEAKNESS() : PotionType
- MUNDANE() : PotionType
- name() : string
- NIGHT_VISION() : PotionType
- POISON() : PotionType
- REGENERATION() : PotionType
- SLOW_FALLING() : PotionType
- SLOWNESS() : PotionType
- STRENGTH() : PotionType
- STRONG_HARMING() : PotionType
- STRONG_HEALING() : PotionType
- STRONG_LEAPING() : PotionType
- STRONG_POISON() : PotionType
- STRONG_REGENERATION() : PotionType
- STRONG_STRENGTH() : PotionType
- STRONG_SWIFTNESS() : PotionType
- STRONG_TURTLE_MASTER() : PotionType
- SWIFTNESS() : PotionType
- THICK() : PotionType
- TURTLE_MASTER() : PotionType
- WATER() : PotionType
- WATER_BREATHING() : PotionType
- WEAKNESS() : PotionType
- WITHER() : PotionType
- register() : void
- Registers the given object as an enum member.
- registerAll() : void
- setup() : void
- __construct() : mixed
Properties
$displayName
private
string
$displayName
$effectsGetter
private
Closure
$effectsGetter
Tags
$enumName
private
string
$enumName
$nextId
private
static int|null
$nextId
= null
$runtimeId
private
int
$runtimeId
Methods
AWKWARD()
public
static AWKWARD() : PotionType
Return values
PotionType —equals()
Returns whether the two objects are equivalent.
public
equals(self $other) : bool
Parameters
- $other : self
Return values
bool —FIRE_RESISTANCE()
public
static FIRE_RESISTANCE() : PotionType
Return values
PotionType —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 —getEffects()
public
getEffects() : array<string|int, EffectInstance>
Tags
Return values
array<string|int, EffectInstance> —HARMING()
public
static HARMING() : PotionType
Return values
PotionType —HEALING()
public
static HEALING() : PotionType
Return values
PotionType —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 —INVISIBILITY()
public
static INVISIBILITY() : PotionType
Return values
PotionType —LEAPING()
public
static LEAPING() : PotionType
Return values
PotionType —LONG_FIRE_RESISTANCE()
public
static LONG_FIRE_RESISTANCE() : PotionType
Return values
PotionType —LONG_INVISIBILITY()
public
static LONG_INVISIBILITY() : PotionType
Return values
PotionType —LONG_LEAPING()
public
static LONG_LEAPING() : PotionType
Return values
PotionType —LONG_MUNDANE()
public
static LONG_MUNDANE() : PotionType
Return values
PotionType —LONG_NIGHT_VISION()
public
static LONG_NIGHT_VISION() : PotionType
Return values
PotionType —LONG_POISON()
public
static LONG_POISON() : PotionType
Return values
PotionType —LONG_REGENERATION()
public
static LONG_REGENERATION() : PotionType
Return values
PotionType —LONG_SLOW_FALLING()
public
static LONG_SLOW_FALLING() : PotionType
Return values
PotionType —LONG_SLOWNESS()
public
static LONG_SLOWNESS() : PotionType
Return values
PotionType —LONG_STRENGTH()
public
static LONG_STRENGTH() : PotionType
Return values
PotionType —LONG_SWIFTNESS()
public
static LONG_SWIFTNESS() : PotionType
Return values
PotionType —LONG_TURTLE_MASTER()
public
static LONG_TURTLE_MASTER() : PotionType
Return values
PotionType —LONG_WATER_BREATHING()
public
static LONG_WATER_BREATHING() : PotionType
Return values
PotionType —LONG_WEAKNESS()
public
static LONG_WEAKNESS() : PotionType
Return values
PotionType —MUNDANE()
public
static MUNDANE() : PotionType
Return values
PotionType —name()
public
name() : string
Return values
string —NIGHT_VISION()
public
static NIGHT_VISION() : PotionType
Return values
PotionType —POISON()
public
static POISON() : PotionType
Return values
PotionType —REGENERATION()
public
static REGENERATION() : PotionType
Return values
PotionType —SLOW_FALLING()
public
static SLOW_FALLING() : PotionType
Return values
PotionType —SLOWNESS()
public
static SLOWNESS() : PotionType
Return values
PotionType —STRENGTH()
public
static STRENGTH() : PotionType
Return values
PotionType —STRONG_HARMING()
public
static STRONG_HARMING() : PotionType
Return values
PotionType —STRONG_HEALING()
public
static STRONG_HEALING() : PotionType
Return values
PotionType —STRONG_LEAPING()
public
static STRONG_LEAPING() : PotionType
Return values
PotionType —STRONG_POISON()
public
static STRONG_POISON() : PotionType
Return values
PotionType —STRONG_REGENERATION()
public
static STRONG_REGENERATION() : PotionType
Return values
PotionType —STRONG_STRENGTH()
public
static STRONG_STRENGTH() : PotionType
Return values
PotionType —STRONG_SWIFTNESS()
public
static STRONG_SWIFTNESS() : PotionType
Return values
PotionType —STRONG_TURTLE_MASTER()
public
static STRONG_TURTLE_MASTER() : PotionType
Return values
PotionType —SWIFTNESS()
public
static SWIFTNESS() : PotionType
Return values
PotionType —THICK()
public
static THICK() : PotionType
Return values
PotionType —TURTLE_MASTER()
public
static TURTLE_MASTER() : PotionType
Return values
PotionType —WATER()
public
static WATER() : PotionType
Return values
PotionType —WATER_BREATHING()
public
static WATER_BREATHING() : PotionType
Return values
PotionType —WEAKNESS()
public
static WEAKNESS() : PotionType
Return values
PotionType —WITHER()
public
static WITHER() : PotionType
Return values
PotionType —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, string $displayName, Closure $effectsGetter) : mixed
Parameters
- $enumName : string
- $displayName : string
- $effectsGetter : Closure