Skip to content

ItemEnchantmentTagRegistry ​

final class · pocketmine\item\enchantment\ItemEnchantmentTagRegistry · source

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.

Methods ​

getNested() ​

php
public function getNested(string $tag) : array

Returns nested tags of a particular tag.

isTagArrayIntersection() ​

php
public function isTagArrayIntersection(array $firstTags, array $secondTags) : bool

register() ​

php
public function register(string $tag, array $nestedTags = []) : void

Register tag and its nested tags.

removeNested() ​

php
public function removeNested(string $tag, array $nestedTags) : void

Remove specified nested tags.

unregister() ​

php
public function unregister(string $tag) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.