TagManager<T : Object>
TagManagers are used to handle the different types of Tags within the game. They can be retrieved directly with the TagManager BEP, and are also used indirectly when creating a tag with the Tag BEP.
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Interfacce Implementate
TagManager implements the following interfaces. That means all methods defined in these interfaces are also available in TagManager
Methods
Checks if a tag already exists. Does the same as calling .exists
on a tag directly
Return Type: boolean
Checks if a tag already exists. Does the same as calling .exists
on a tag directly
Return Type: boolean
Retrieves a tag by its name. Will also be called by the BEP. Note that this method does not yet create the tag if it does not exist. Adding something to the object created by this tag will create it for the game.
Return Type: MCTag<T>
Retrieves a tag by its name. Will also be called by the BEP. Note that this method does not yet create the tag if it does not exist. Adding something to the object created by this tag will create it for the game.
Return Type: MCTag<T>
Get the tag type. In a Bracket call, this will used to determine which TagManager to use. {
Return Type: string