KnownTagManager
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.type.KnownTagManager;Implements
KnownTagManager<T>
implements the following interfaces:
ITagManager<KnownTag<T>>,CommandStringDisplayable
Undocumented Interfaces
Iterable<MCTag>,Comparable<ITagManager<?>>
Operators
// ((id as string) in KnownTagManager<T>) as boolmyString in myKnownTagManagerParameters:
id: string Type: string
- The id of the tag to check.
Return Type:
bool
myResourceLocation in myKnownTagManagerParameters:
Return Type:
bool
Members
// KnownTagManager<T>.commandString as stringmyKnownTagManager.commandString
Return Type:
string
// KnownTagManager<T>.commandString() as string;myKnownTagManager.commandString();
Return Type:
string
Returns: The list of elements in the tag.
myKnownTagManager.elements(<tag:items:minecraft:dirt>);
Return Type:
List<T>
Returns: true if it exists, false otherwise.
// KnownTagManager<T>.exists(id as string) as bool;myKnownTagManager.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.
myKnownTagManager.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.
myKnownTagManager.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.
myKnownTagManager.idElements(<tag:items:minecraft:wool>);
Return Type:
List<ResourceLocation>
myKnownTagManager.removeId(myKnownTag, myResourceLocation[]);Parameters:
values: ResourceLocation[] Type: ResourceLocation[] myKnownTagManager.tag(myResourceLocation);Parameters:
id: ResourceLocation Type: ResourceLocation
Return Type:
KnownTag<T>
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
// KnownTagManager<T>.tagFolder as stringmyKnownTagManager.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.
// KnownTagManager<T>.tagFolder() as string;myKnownTagManager.tagFolder();
Return Type:
string
myKnownTagManager.tagMap
Return Type:
KnownTag<T>[ResourceLocation]