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:
crafttweaker
tags
Implements
ITagManager<MCTag>
implements the following interfaces:
Undocumented Interfaces
Iterable<MCTag>
,Comparable<ITagManager<?>>
Operators
myString in <tagmanager:items>
Parameters:
id: string
Type: string
- The id of the tag to check.
Return Type:
bool
myResourceLocation in <tagmanager:items>
Parameters:
Return Type:
bool
Members
ResourceLocation
to the given tag.<tagmanager:items>.addId(<tag:items:minecraft:wool>, <resource:minecraft:diamond>);
Parameters:
Returns: true if it exists, false otherwise.
<tagmanager:items>.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.
<tagmanager:items>.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.
<tagmanager:items>.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.
<tagmanager:items>.idElements(<tag:items:minecraft:wool>);
Return Type:
List<ResourceLocation>
ResourceLocation
from the given tag.<tagmanager:items>.removeId(<tag:items:minecraft:wool>, <resource:minecraft:diamond>);
Parameters:
Returns: A tag with the given id.
<tagmanager:items>.tag(<resource:minecraft:wool>);
Parameters:
Return Type:
MCTag
The tag folder is usually the folder on disk without the tags/
prefix.
Examples:
-
tags/items
turns intoitems
-
tags/potion
turns intopotion
-
tags/worldgen/biome
turns intoworldgen/biome
<tagmanager:items>.tagFolder
Return Type:
string
The tag folder is usually the folder on disk without the tags/
prefix.
Examples:
-
tags/items
turns intoitems
-
tags/potion
turns intopotion
-
tags/worldgen/biome
turns intoworldgen/biome
Returns: The tag folder of this manager.
<tagmanager:items>.tagFolder();
Return Type:
string
<tagmanager:items>.tagKeys
Return Type:
List<ResourceLocation>
Returns: A List of keys of the tags that this manager knows about.
<tagmanager:items>.tagKeys();
Return Type:
List<ResourceLocation>
<tagmanager:items>.tagMap
Return Type:
MCTag[ResourceLocation]
Returns: a map of id to tag.
<tagmanager:items>.tagMap();
Return Type:
MCTag[ResourceLocation]