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.
  • 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: MCTag
      Gets the id of this tag.
      Specified by:
      id in interface MCTag
      Returns:
      The id of this tag.
    • manager

      public UnknownTagManager manager()
      Description copied from interface: MCTag
      Gets the ITagManager for this tag.
      Specified by:
      manager in interface MCTag
      Returns:
      The ITagManager for this tag.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • withAmount

      public Many<UnknownTag> withAmount(int amount)
    • asTagWithAmount

      public Many<UnknownTag> asTagWithAmount()