Documentation

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
see

build/generate-registry-annotations.php

generate-registry-docblock

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
phpstan-param

list $arguments

Return values
object

preprocessMember()

protected static preprocessMember(object $member) : object
Parameters
$member : object
Return values
object

_registryFromString()

private static _registryFromString(string $name) : object
Parameters
$name : string
Tags
throws
InvalidArgumentException
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
Tags
throws
InvalidArgumentException
Return values
void

Search results