PocketMine-MP 5.42.2 git-40e2639b20bdc4ddba49d9f7f5fa0d5e92aa266f
Loading...
Searching...
No Matches
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 42 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 128 of file ItemEnchantmentTagRegistry.php.

◆ isTagArrayIntersection()

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

Definition at line 136 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 81 of file ItemEnchantmentTagRegistry.php.

◆ removeNested()

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

Remove specified nested tags.

Parameters
string[]$nestedTags

Definition at line 118 of file ItemEnchantmentTagRegistry.php.

◆ unregister()

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

Definition at line 97 of file ItemEnchantmentTagRegistry.php.


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