PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\item\enchantment\ItemEnchantmentTagRegistry Class Reference
+ Collaboration diagram for pocketmine\item\enchantment\ItemEnchantmentTagRegistry:

Public Member Functions

 getNested (string $tag)
 
 isTagArrayIntersection (array $firstTags, array $secondTags)
 
 register (string $tag, array $nestedTags=[])
 
 removeNested (string $tag, array $nestedTags)
 
 unregister (string $tag)
 

Detailed Description

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.

Member Function Documentation

◆ getNested()

pocketmine\item\enchantment\ItemEnchantmentTagRegistry::getNested ( string  $tag)

Returns nested tags of a particular tag.

Returns
string[]

Definition at line 126 of file ItemEnchantmentTagRegistry.php.

◆ isTagArrayIntersection()

pocketmine\item\enchantment\ItemEnchantmentTagRegistry::isTagArrayIntersection ( array  $firstTags,
array  $secondTags 
)
Parameters
string[]$firstTags
string[]$secondTags

Definition at line 134 of file ItemEnchantmentTagRegistry.php.

◆ register()

pocketmine\item\enchantment\ItemEnchantmentTagRegistry::register ( string  $tag,
array  $nestedTags = [] 
)

Register tag and its nested tags.

Parameters
string[]$nestedTags

Definition at line 80 of file ItemEnchantmentTagRegistry.php.

◆ removeNested()

pocketmine\item\enchantment\ItemEnchantmentTagRegistry::removeNested ( string  $tag,
array  $nestedTags 
)

Remove specified nested tags.

Parameters
string[]$nestedTags

Definition at line 116 of file ItemEnchantmentTagRegistry.php.

◆ unregister()

pocketmine\item\enchantment\ItemEnchantmentTagRegistry::unregister ( string  $tag)

Definition at line 96 of file ItemEnchantmentTagRegistry.php.


The documentation for this class was generated from the following file: