ITagManager
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.tag.manager.ITagManager;Description
Loaders
This type is available in the following loaders:
crafttweakertags
Implements
ITagManager<MCTag>
implements the following interfaces:
Undocumented Interfaces
Iterable<MCTag>,Comparable<ITagManager<?>>
Operators
myString in myITagManagerParameters:
id: string Type: string
- The id of the tag to check.
Return Type:
bool
myResourceLocation in myITagManagerParameters:
Return Type:
bool
Members
ResourceLocation to the given tag.myITagManager.addId(<tag:items:minecraft:wool>, <resource:minecraft:diamond>);Parameters:
Returns: true if it exists, false otherwise.
myITagManager.exists("minecraft:wool");Parameters:
id: string Type: string
- The id of the tag to check.
Return Type:
bool
Returns: true if it exists, false otherwise.
myITagManager.exists(<resource:minecraft:wool>);Parameters:
Return Type:
bool
This method needs to be overriden with a covariant return type and exposed to ZenCode.
Returns: The tags that contain the given elements.
myITagManager.getTagsFor(myResourceLocation);Parameters:
element: ResourceLocation Type: ResourceLocation
Return Type:
List<MCTag>
ResourceLocation ids of the elements in the given tag.Returns: A List of ResourceLocation ids of the elements in the given tag.
myITagManager.idElements(<tag:items:minecraft:wool>);
Return Type:
List<ResourceLocation>
ResourceLocation from the given tag.myITagManager.removeId(<tag:items:minecraft:wool>, <resource:minecraft:diamond>);Parameters:
Returns: A tag with the given id.
myITagManager.tag(<resource:minecraft:wool>);Parameters:
Return Type:
MCTag
The tag folder is usually the folder on disk without the tags/ prefix.
Examples:
-
tags/itemsturns intoitems -
tags/potionturns intopotion -
tags/worldgen/biometurns intoworldgen/biome
myITagManager.tagFolder
Return Type:
string
The tag folder is usually the folder on disk without the tags/ prefix.
Examples:
-
tags/itemsturns intoitems -
tags/potionturns intopotion -
tags/worldgen/biometurns intoworldgen/biome
Returns: The tag folder of this manager.
myITagManager.tagFolder();
Return Type:
string
myITagManager.tagKeys
Return Type:
List<ResourceLocation>
Returns: A List of keys of the tags that this manager knows about.
myITagManager.tagKeys();
Return Type:
List<ResourceLocation>
myITagManager.tagMap
Return Type:
MCTag[ResourceLocation]
Returns: a map of id to tag.
myITagManager.tagMap();
Return Type:
MCTag[ResourceLocation]