MCTag
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.
Description
Loaders
This type is available in the following loaders:
crafttweaker
tags
Implements
MCTag
implements the following interfaces:
Undocumented Interfaces
Comparable<MCTag>
Operators
in(id as ResourceLocation) as bool
Checks if this tag contains an element with the given id
Parameters:
Return Type:
bool
Members
addId(elements as ResourceLocation[])
clear()
Removes all elements in this tag.
contains(id as ResourceLocation) as bool
Checks if this tag contains an element with the given id
Returns: true if it contains the element, false otherwise.
Parameters:
Return Type:
bool
Getter
Checks if this tag exists.
Return Type:
bool
exists() as bool
Checks if this tag exists.
Returns: true if this tag exists, false otherwise.
Return Type:
bool
Getter
Gets the id of this tag.
Return Type:
ResourceLocation
id() as ResourceLocation
Getter
Gets the id's of the elements in this tag.
Return Type:
List<ResourceLocation>
idElements() as List<ResourceLocation>
Gets the id's of the elements in this tag.
Returns: The id's elements in this tag.
Return Type:
List<ResourceLocation>
removeId(elements as ResourceLocation[])