PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
areCompatible (Enchantment $first, Enchantment $second) | |
register (string $tag, array $enchantments) | |
unregister (string $tag, array $enchantments) | |
unregisterAll (string $tag) | |
Manages which enchantments are incompatible with each other. Enchantments can be added to groups to make them incompatible with all other enchantments already in that group.
Definition at line 37 of file IncompatibleEnchantmentRegistry.php.
pocketmine\item\enchantment\IncompatibleEnchantmentRegistry::areCompatible | ( | Enchantment | $first, |
Enchantment | $second ) |
Returns whether two enchantments can be applied to the same item.
Definition at line 89 of file IncompatibleEnchantmentRegistry.php.
pocketmine\item\enchantment\IncompatibleEnchantmentRegistry::register | ( | string | $tag, |
array | $enchantments ) |
Register incompatibility for an enchantment group.
All enchantments belonging to the same group are incompatible with each other, i.e. they cannot be added together on the same item.
Enchantment[] | $enchantments |
Definition at line 60 of file IncompatibleEnchantmentRegistry.php.
pocketmine\item\enchantment\IncompatibleEnchantmentRegistry::unregister | ( | string | $tag, |
array | $enchantments ) |
Unregister incompatibility for some enchantments of a particular group.
Enchantment[] | $enchantments |
Definition at line 71 of file IncompatibleEnchantmentRegistry.php.
pocketmine\item\enchantment\IncompatibleEnchantmentRegistry::unregisterAll | ( | string | $tag | ) |
Unregister incompatibility for all enchantments of a particular group.
Definition at line 80 of file IncompatibleEnchantmentRegistry.php.