Package com.sk89q.jnbt
Class ListTagBuilder
java.lang.Object
com.sk89q.jnbt.ListTagBuilder
Helps create list tags.
-
Method Summary
Modifier and TypeMethodDescriptionAdd the given tag.addAll
(Collection<? extends Tag> value) Add all the tags in the given list.build()
Build an unnamed list tag with this builder's entries.static ListTagBuilder
Create a new builder instance.static ListTagBuilder
createWith
(Tag... entries) Create a new builder instance.
-
Method Details
-
add
Add the given tag.- Parameters:
value
- the tag- Returns:
- this object
-
addAll
Add all the tags in the given list.- Parameters:
value
- a list of tags- Returns:
- this object
-
build
Build an unnamed list tag with this builder's entries.- Returns:
- the new list tag
-
create
Create a new builder instance.- Returns:
- a new builder
-
createWith
Create a new builder instance.- Returns:
- a new builder
-