22 lines
389 B
Markdown
22 lines
389 B
Markdown
# INBTList.toArray
|
|
|
|
[← INBTList](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 3/3 · [önceki](toArray-2.md)
|
|
|
|
Add NBT list at the end of the list
|
|
|
|
toArray
|
|
|
|
java.lang.Object[] toArray()
|
|
|
|
Turns a NBT list into a Java array.
|
|
|
|
var tag = mappet.createCompound("{id:[0,2,4]}");
|
|
|
|
c.send(tag.get("id").toArray()[1]); // 2
|
|
|
|
|
|
Returns:
|
|
an array of the list's elements
|