UnknownTag
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.type.UnknownTag;
Description
An unknown tag is a tag whose element is not known or has not been registered as Taggable.Modders should use
MCTag
instead of this class for parameters as a previously unknown tag could become a known tag in the future.. Loaders
This type is available in the following loaders:
crafttweaker
tags
Implements
UnknownTag
implements the following interfaces:
MCTag
,CommandStringDisplayable
Undocumented Interfaces
Comparable<MCTag>
Operators
myResourceLocation in myUnknownTag
Parameters:
Return Type:
bool
Members
ResourceLocation
to this tag.myUnknownTag.addId(<resource:minecraft:diamond>);
Parameters:
myUnknownTag as Many<UnknownTag>
Return Type:
Many<UnknownTag>
// UnknownTag.clear();myUnknownTag.clear();
// UnknownTag.commandString as stringmyUnknownTag.commandString
Return Type:
string
// UnknownTag.commandString() as string;myUnknownTag.commandString();
Return Type:
string
Returns: true if it contains the element, false otherwise.
myUnknownTag.contains(<resource:minecraft:white_wool>);
Parameters:
Return Type:
bool
// UnknownTag.exists as boolmyUnknownTag.exists
Return Type:
bool
Returns: true if this tag exists, false otherwise.
// UnknownTag.exists() as bool;myUnknownTag.exists();
Return Type:
bool
// UnknownTag.id as ResourceLocationmyUnknownTag.id
Return Type:
ResourceLocation
myUnknownTag.idElements
Return Type:
List<ResourceLocation>
Returns: The id's elements in this tag.
myUnknownTag.idElements();
Return Type:
List<ResourceLocation>
// UnknownTag.manager as UnknownTagManagermyUnknownTag.manager
Return Type:
UnknownTagManager
ResourceLocation
from this tag.myUnknownTag.removeId(<resource:minecraft:diamond>);
Parameters:
// UnknownTag as stringmyUnknownTag as string
Return Type:
string
myUnknownTag.withAmount(myInt);
Parameters:
amount: int
Type: int
Return Type:
Many<UnknownTag>