PocketMine-MP 5.15.1 git-be6754494fdbbb9dd57c058ba0e33a4a78c4581f
pocketmine\item\enchantment\VanillaEnchantments Class Reference
+ Collaboration diagram for pocketmine\item\enchantment\VanillaEnchantments:

Static Public Member Functions

static getAll ()
 

Static Protected Member Functions

static register (string $name, Enchantment $member)
 
static setup ()
 

Detailed Description

This doc-block is generated automatically, do not modify it manually. This must be regenerated whenever registry members are added, removed or changed.

See also
build/generate-registry-annotations.php @generate-registry-docblock

@method static ProtectionEnchantment BLAST_PROTECTION() @method static Enchantment EFFICIENCY() @method static ProtectionEnchantment FEATHER_FALLING() @method static FireAspectEnchantment FIRE_ASPECT() @method static ProtectionEnchantment FIRE_PROTECTION() @method static Enchantment FLAME() @method static Enchantment FORTUNE() @method static Enchantment INFINITY() @method static KnockbackEnchantment KNOCKBACK() @method static Enchantment MENDING() @method static Enchantment POWER() @method static ProtectionEnchantment PROJECTILE_PROTECTION() @method static ProtectionEnchantment PROTECTION() @method static Enchantment PUNCH() @method static Enchantment RESPIRATION() @method static SharpnessEnchantment SHARPNESS() @method static Enchantment SILK_TOUCH() @method static Enchantment SWIFT_SNEAK() @method static Enchantment THORNS() @method static Enchantment UNBREAKING() @method static Enchantment VANISHING()

Definition at line 58 of file VanillaEnchantments.php.

Member Function Documentation

◆ getAll()

static pocketmine\item\enchantment\VanillaEnchantments::getAll ( )
static
Returns
Enchantment[] @phpstan-return array<string, Enchantment>

Definition at line 290 of file VanillaEnchantments.php.

◆ register()

static pocketmine\item\enchantment\VanillaEnchantments::register ( string  $name,
Enchantment  $member 
)
staticprotected

Definition at line 282 of file VanillaEnchantments.php.

◆ setup()

static pocketmine\item\enchantment\VanillaEnchantments::setup ( )
staticprotected

Definition at line 61 of file VanillaEnchantments.php.


The documentation for this class was generated from the following file: