Class ListTagBuilder<V,LT extends org.enginehub.linbus.tree.LinTag<V>>

java.lang.Object
com.sk89q.jnbt.ListTagBuilder<V,LT>

@Deprecated public class ListTagBuilder<V,LT extends org.enginehub.linbus.tree.LinTag<V>> extends Object
Deprecated.
Use LinListTag.Builder.
Helps create list tags.
  • Method Details

    • add

      public ListTagBuilder<V,LT> add(Tag<V,LT> value)
      Deprecated.
      Add the given tag.
      Parameters:
      value - the tag
      Returns:
      this object
    • addAll

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

      public ListTag<V,LT> build()
      Deprecated.
      Build an unnamed list tag with this builder's entries.
      Returns:
      the new list tag
    • create

      public static <V, LT extends org.enginehub.linbus.tree.LinTag<V>> ListTagBuilder<V,LT> create(Class<? extends Tag<V,LT>> type)
      Deprecated.
      Create a new builder instance.
      Returns:
      a new builder
    • createWith

      @SafeVarargs public static <V, LT extends org.enginehub.linbus.tree.LinTag<V>> ListTagBuilder<V,LT> createWith(Tag<V,LT>... entries)
      Deprecated.
      Create a new builder instance.
      Returns:
      a new builder