EntityTypeTagManager
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.EntityTypeTagManager;
Extends
EntityTypeTagManager extends KnownTagManager<EntityType<Entity>>
.
Implements
EntityTypeTagManager
implements the following interfaces:
ITagManager<KnownTag<T>>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<MCTag>
,Comparable<ITagManager<?>>
Operators
// ((id as string) in EntityTypeTagManager) as boolmyString in myEntityTypeTagManager
Parameters:
id: string
Type: string
- The id of the tag to check.
Return Type:
bool
myResourceLocation in myEntityTypeTagManager
Parameters:
Return Type:
bool
Members
ResourceLocation
to the given tag.myEntityTypeTagManager.addId(<tag:items:minecraft:wool>, <resource:minecraft:diamond>);
Parameters:
// EntityTypeTagManager.commandString as stringmyEntityTypeTagManager.commandString
Return Type:
string
// EntityTypeTagManager.commandString() as string;myEntityTypeTagManager.commandString();
Return Type:
string
Returns: The list of elements in the tag.
myEntityTypeTagManager.elements(<tag:items:minecraft:dirt>);
Return Type:
List<T>
Returns: true if it exists, false otherwise.
// EntityTypeTagManager.exists(id as string) as bool;myEntityTypeTagManager.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.
myEntityTypeTagManager.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.
myEntityTypeTagManager.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.
myEntityTypeTagManager.idElements(<tag:items:minecraft:wool>);
Return Type:
List<ResourceLocation>
myEntityTypeTagManager.removeId(myKnownTag, myResourceLocation[]);
Parameters:
values: ResourceLocation[]
Type: ResourceLocation[]
ResourceLocation
from the given tag.myEntityTypeTagManager.removeId(<tag:items:minecraft:wool>, <resource:minecraft:diamond>);
Parameters:
myEntityTypeTagManager.tag(myResourceLocation);
Parameters:
id: ResourceLocation
Type: ResourceLocation
Return Type:
KnownTag<T>
Returns: A tag with the given id.
myEntityTypeTagManager.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
// EntityTypeTagManager.tagFolder as stringmyEntityTypeTagManager.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.
// EntityTypeTagManager.tagFolder() as string;myEntityTypeTagManager.tagFolder();
Return Type:
string
myEntityTypeTagManager.tagKeys
Return Type:
List<ResourceLocation>
Returns: A List of keys of the tags that this manager knows about.
myEntityTypeTagManager.tagKeys();
Return Type:
List<ResourceLocation>
myEntityTypeTagManager.tagMap
Return Type:
KnownTag<T>[ResourceLocation]
myEntityTypeTagManager.tagMap
Return Type:
MCTag[ResourceLocation]
Returns: a map of id to tag.
myEntityTypeTagManager.tagMap();
Return Type:
MCTag[ResourceLocation]