Class ListTag<T extends Tag>

java.lang.Object
net.glowstone.util.nbt.Tag<List<T>>
net.glowstone.util.nbt.ListTag<T>

public final class ListTag<T extends Tag> extends Tag<List<T>>
The TAG_List tag.
  • Constructor Details

    • ListTag

      public ListTag(TagType childType, List<T> value)
      Creates the tag.
      Parameters:
      childType - The type of item in the list.
      value - The value.
  • Method Details

    • getValue

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

      protected void valueToString(StringBuilder builder)
      Overrides:
      valueToString in class Tag<List<T extends Tag>>
    • getChildType

      public TagType getChildType()
      The type of entries within this list.
      Returns:
      The type of item in this list.