$applicableDamageTypes (defined in pocketmine\item\enchantment\ProtectionEnchantment) | pocketmine\item\enchantment\ProtectionEnchantment | protected |
$typeModifier (defined in pocketmine\item\enchantment\ProtectionEnchantment) | pocketmine\item\enchantment\ProtectionEnchantment | protected |
__construct(Translatable|string $name, int $rarity, int $primaryItemFlags, int $secondaryItemFlags, int $maxLevel, float $typeModifier, ?array $applicableDamageTypes, ?\Closure $minEnchantingPower=null, int $enchantingPowerRange=50) | pocketmine\item\enchantment\ProtectionEnchantment | |
pocketmine::item::enchantment::Enchantment::__construct(private Translatable|string $name, private int $rarity, private int $primaryItemFlags, private int $secondaryItemFlags, private int $maxLevel, ?\Closure $minEnchantingPower=null, private int $enchantingPowerRange=50) | pocketmine\item\enchantment\Enchantment | |
getMaxEnchantingPower(int $level) | pocketmine\item\enchantment\Enchantment | |
getMaxLevel() | pocketmine\item\enchantment\Enchantment | |
getMinEnchantingPower(int $level) | pocketmine\item\enchantment\Enchantment | |
getName() | pocketmine\item\enchantment\Enchantment | |
getPrimaryItemFlags() | pocketmine\item\enchantment\Enchantment | |
getProtectionFactor(int $level) | pocketmine\item\enchantment\ProtectionEnchantment | |
getRarity() | pocketmine\item\enchantment\Enchantment | |
getSecondaryItemFlags() | pocketmine\item\enchantment\Enchantment | |
getTypeModifier() | pocketmine\item\enchantment\ProtectionEnchantment | |
hasPrimaryItemType(int $flag) | pocketmine\item\enchantment\Enchantment | |
hasSecondaryItemType(int $flag) | pocketmine\item\enchantment\Enchantment | |
isApplicable(EntityDamageEvent $event) | pocketmine\item\enchantment\ProtectionEnchantment | |
isCompatibleWith(Enchantment $other) | pocketmine\item\enchantment\Enchantment | |