VanillaEnchantments
in package
Uses
RegistryTrait
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
- $members : array<string|int, object>
- __callStatic() : object
- BLAST_PROTECTION() : ProtectionEnchantment
- EFFICIENCY() : Enchantment
- FEATHER_FALLING() : ProtectionEnchantment
- FIRE_ASPECT() : FireAspectEnchantment
- FIRE_PROTECTION() : ProtectionEnchantment
- FLAME() : Enchantment
- getAll() : array<string|int, Enchantment>
- INFINITY() : Enchantment
- KNOCKBACK() : KnockbackEnchantment
- MENDING() : Enchantment
- POWER() : Enchantment
- PROJECTILE_PROTECTION() : ProtectionEnchantment
- PROTECTION() : ProtectionEnchantment
- PUNCH() : Enchantment
- RESPIRATION() : Enchantment
- SHARPNESS() : SharpnessEnchantment
- SILK_TOUCH() : Enchantment
- THORNS() : Enchantment
- UNBREAKING() : Enchantment
- VANISHING() : Enchantment
- preprocessMember() : object
- register() : void
- setup() : void
- _registryFromString() : object
- _registryGetAll() : array<string|int, object>
- _registryRegister() : void
- Adds the given object to the registry.
Properties
$members
private
static array<string|int, object>
$members
= null
Methods
__callStatic()
public
static __callStatic(string $name, array<string|int, mixed> $arguments) : object
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Tags
Return values
object —BLAST_PROTECTION()
public
static BLAST_PROTECTION() : ProtectionEnchantment
Return values
ProtectionEnchantment —EFFICIENCY()
public
static EFFICIENCY() : Enchantment
Return values
Enchantment —FEATHER_FALLING()
public
static FEATHER_FALLING() : ProtectionEnchantment
Return values
ProtectionEnchantment —FIRE_ASPECT()
public
static FIRE_ASPECT() : FireAspectEnchantment
Return values
FireAspectEnchantment —FIRE_PROTECTION()
public
static FIRE_PROTECTION() : ProtectionEnchantment
Return values
ProtectionEnchantment —FLAME()
public
static FLAME() : Enchantment
Return values
Enchantment —getAll()
public
static getAll() : array<string|int, Enchantment>
Tags
Return values
array<string|int, Enchantment> —INFINITY()
public
static INFINITY() : Enchantment
Return values
Enchantment —KNOCKBACK()
public
static KNOCKBACK() : KnockbackEnchantment
Return values
KnockbackEnchantment —MENDING()
public
static MENDING() : Enchantment
Return values
Enchantment —POWER()
public
static POWER() : Enchantment
Return values
Enchantment —PROJECTILE_PROTECTION()
public
static PROJECTILE_PROTECTION() : ProtectionEnchantment
Return values
ProtectionEnchantment —PROTECTION()
public
static PROTECTION() : ProtectionEnchantment
Return values
ProtectionEnchantment —PUNCH()
public
static PUNCH() : Enchantment
Return values
Enchantment —RESPIRATION()
public
static RESPIRATION() : Enchantment
Return values
Enchantment —SHARPNESS()
public
static SHARPNESS() : SharpnessEnchantment
Return values
SharpnessEnchantment —SILK_TOUCH()
public
static SILK_TOUCH() : Enchantment
Return values
Enchantment —THORNS()
public
static THORNS() : Enchantment
Return values
Enchantment —UNBREAKING()
public
static UNBREAKING() : Enchantment
Return values
Enchantment —VANISHING()
public
static VANISHING() : Enchantment
Return values
Enchantment —preprocessMember()
protected
static preprocessMember(object $member) : object
Parameters
- $member : object
Return values
object —register()
protected
static register(string $name, Enchantment $member) : void
Parameters
- $name : string
- $member : Enchantment
Return values
void —setup()
protected
static setup() : void
Return values
void —_registryFromString()
private
static _registryFromString(string $name) : object
Parameters
- $name : string
Tags
Return values
object —_registryGetAll()
private
static _registryGetAll() : array<string|int, object>
Return values
array<string|int, object> —_registryRegister()
Adds the given object to the registry.
private
static _registryRegister(string $name, object $member) : void
Parameters
- $name : string
- $member : object