Class ListTagBuilder

java.lang.Object
com.sk89q.jnbt.ListTagBuilder

public class ListTagBuilder extends Object
Helps create list tags.
  • Method Details

    • add

      public ListTagBuilder add(Tag value)
      Add the given tag.
      Parameters:
      value - the tag
      Returns:
      this object
    • addAll

      public ListTagBuilder addAll(Collection<? extends Tag> value)
      Add all the tags in the given list.
      Parameters:
      value - a list of tags
      Returns:
      this object
    • build

      public ListTag build()
      Build an unnamed list tag with this builder's entries.
      Returns:
      the new list tag
    • create

      public static ListTagBuilder create(Class<? extends Tag> type)
      Create a new builder instance.
      Returns:
      a new builder
    • createWith

      public static ListTagBuilder createWith(Tag... entries)
      Create a new builder instance.
      Returns:
      a new builder