PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
|
Public Member Functions | |
getNested (string $tag) | |
isTagArrayIntersection (array $firstTags, array $secondTags) | |
register (string $tag, array $nestedTags=[]) | |
removeNested (string $tag, array $nestedTags) | |
unregister (string $tag) | |
Manages known item enchantment tags and the relations between them. Used to determine which tags belong to which other tags, and to check if lists of tags intersect.
Definition at line 41 of file ItemEnchantmentTagRegistry.php.
pocketmine\item\enchantment\ItemEnchantmentTagRegistry::getNested | ( | string | $tag | ) |
Returns nested tags of a particular tag.
Definition at line 126 of file ItemEnchantmentTagRegistry.php.
pocketmine\item\enchantment\ItemEnchantmentTagRegistry::isTagArrayIntersection | ( | array | $firstTags, |
array | $secondTags | ||
) |
string[] | $firstTags | |
string[] | $secondTags |
Definition at line 134 of file ItemEnchantmentTagRegistry.php.
pocketmine\item\enchantment\ItemEnchantmentTagRegistry::register | ( | string | $tag, |
array | $nestedTags = [] |
||
) |
Register tag and its nested tags.
string[] | $nestedTags |
Definition at line 80 of file ItemEnchantmentTagRegistry.php.
pocketmine\item\enchantment\ItemEnchantmentTagRegistry::removeNested | ( | string | $tag, |
array | $nestedTags | ||
) |
Remove specified nested tags.
string[] | $nestedTags |
Definition at line 116 of file ItemEnchantmentTagRegistry.php.
pocketmine\item\enchantment\ItemEnchantmentTagRegistry::unregister | ( | string | $tag | ) |
Definition at line 96 of file ItemEnchantmentTagRegistry.php.