Class UnknownTag
java.lang.Object
com.blamejared.crafttweaker.api.tag.type.UnknownTag
- All Implemented Interfaces:
CommandStringDisplayable,MCTag,Comparable<MCTag>
@ZenRegister(loaders={"crafttweaker","tags"})
public class UnknownTag
extends Object
implements MCTag
An unknown tag is a tag whose element is not known or has not been registered as Taggable.
-
Field Summary
Fields inherited from interface com.blamejared.crafttweaker.api.tag.MCTag
COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionUnknownTag(net.minecraft.resources.ResourceLocation id, UnknownTagManager manager) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()net.minecraft.resources.ResourceLocationid()Gets the id of this tag.manager()Gets theITagManagerfor this tag.toString()withAmount(int amount) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.blamejared.crafttweaker.api.tag.MCTag
add, addId, clear, compareTo, contains, equals, exists, getCommandString, getInternal, getTagKey, idElements, remove, removeId
-
Constructor Details
-
UnknownTag
public UnknownTag(@Nonnull net.minecraft.resources.ResourceLocation id, @Nonnull UnknownTagManager manager)
-
-
Method Details
-
id
public net.minecraft.resources.ResourceLocation id()Description copied from interface:MCTagGets the id of this tag. -
manager
Description copied from interface:MCTagGets theITagManagerfor this tag.- Specified by:
managerin interfaceMCTag- Returns:
- The
ITagManagerfor this tag.
-
toString
-
equals
-
hashCode
public int hashCode() -
withAmount
-
asTagWithAmount
-