EnchantmentInstance
Container for enchantment data applied to items.
Note: This class is assumed to be immutable. Consider this before making alterations.
Methods
__construct()
php
public function __construct(\pocketmine\item\enchantment\Enchantment $enchantment, int $level = 1)getLevel()
php
public function getLevel() : intReturns the level of the enchantment.
getType()
php
public function getType() : \pocketmine\item\enchantment\EnchantmentReturns the type of this enchantment.
