UnknownTagManager
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.UnknownTagManager;Loaders
This type is available in the following loaders:
crafttweakertags
Implements
UnknownTagManager
implements the following interfaces:
ITagManager<UnknownTag>,CommandStringDisplayable
Undocumented Interfaces
Iterable<MCTag>,Comparable<ITagManager<?>>
Operators
// ((id as string) in UnknownTagManager) as boolmyString in myUnknownTagManagerParameters:
id: string Type: string
- The id of the tag to check.
Return Type:
bool
myResourceLocation in myUnknownTagManagerParameters:
Return Type:
bool
Members
myUnknownTagManager.addId(myUnknownTag, myResourceLocation[]);Parameters:
to: UnknownTag Type: UnknownTag values: ResourceLocation[] Type: ResourceLocation[] // UnknownTagManager.commandString as stringmyUnknownTagManager.commandString
Return Type:
string
// UnknownTagManager.commandString() as string;myUnknownTagManager.commandString();
Return Type:
string
Returns: true if it exists, false otherwise.
// UnknownTagManager.exists(id as string) as bool;myUnknownTagManager.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.
myUnknownTagManager.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.
myUnknownTagManager.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.
myUnknownTagManager.idElements(<tag:items:minecraft:wool>);
Return Type:
List<ResourceLocation>
myUnknownTagManager.removeId(myUnknownTag, myResourceLocation[]);Parameters:
from: UnknownTag Type: UnknownTag values: ResourceLocation[] Type: ResourceLocation[] myUnknownTagManager.tag(myString);Parameters:
id: string Type: string
Return Type:
UnknownTag
myUnknownTagManager.tag(myResourceLocation);Parameters:
id: ResourceLocation Type: ResourceLocation
Return Type:
UnknownTag
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
// UnknownTagManager.tagFolder as stringmyUnknownTagManager.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.
// UnknownTagManager.tagFolder() as string;myUnknownTagManager.tagFolder();
Return Type:
string
myUnknownTagManager.tagMap
Return Type:
UnknownTag[ResourceLocation]