Class ListTag

java.lang.Object
net.citizensnpcs.api.jnbt.Tag
net.citizensnpcs.api.jnbt.ListTag

public final class ListTag extends Tag
The TAG_List tag.
  • Constructor Details

    • ListTag

      public ListTag(String name, Class<? extends Tag> type, List<? extends Tag> value)
      Creates the tag.
      Parameters:
      name - The name.
      type - The type of item in the list.
      value - The value.
  • Method Details

    • getType

      public Class<? extends Tag> getType()
      Gets the type of item in this list.
      Returns:
      The type of item in this list.
    • getValue

      public List<Tag> getValue()
      Description copied from class: Tag
      Gets the value of this tag.
      Specified by:
      getValue in class Tag
      Returns:
      The value of this tag.
    • toString

      public String toString()
      Overrides:
      toString in class Object