PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
__construct (private Enchantment $enchantment, private int $level=1) | |
getLevel () | |
getType () | |
Container for enchantment data applied to items.
Note: This class is assumed to be immutable. Consider this before making alterations.
Definition at line 31 of file EnchantmentInstance.php.
pocketmine\item\enchantment\EnchantmentInstance::__construct | ( | private Enchantment | $enchantment, |
private int | $level = 1 ) |
Definition at line 32 of file EnchantmentInstance.php.
pocketmine\item\enchantment\EnchantmentInstance::getLevel | ( | ) |
Returns the level of the enchantment.
Definition at line 47 of file EnchantmentInstance.php.
Referenced by pocketmine\network\mcpe\InventoryManager\syncEnchantingTableOptions().
pocketmine\item\enchantment\EnchantmentInstance::getType | ( | ) |
Returns the type of this enchantment.
Definition at line 40 of file EnchantmentInstance.php.
Referenced by pocketmine\network\mcpe\InventoryManager\syncEnchantingTableOptions().