public interface ReadableNBTList<T> extends Iterable<T>
| Modifier and Type | Method and Description | 
|---|---|
| boolean | contains(Object o)Returns true if this list contains the specified element. | 
| boolean | containsAll(Collection<?> c)Returns true if this collection contains all of the elements in the specified
 collection | 
| T | get(int id)Get the object with the given id. | 
| NBTType | getType()Returns the type of this tag | 
| int | indexOf(Object o)Returns the index of the first occurrence of the specified element in this
 list, or -1 if this list does not contain the element. | 
| boolean | isEmpty()Returns true if the list is empty, false otherwise. | 
| int | lastIndexOf(Object o)Returns the index of the last occurrence of the specified element in this
 list, or -1 if this list does not contain the element | 
| int | size()Returns the number of elements in this list. | 
| List<T> | subList(int fromIndex,
       int toIndex)Returns a view of the portion of this list between the specified fromIndex,
 inclusive, and toIndex, exclusive | 
| Object[] | toArray()Returns an array containing all of the elements in this list in proper
 sequence (from first to last element). | 
| <E> E[] | toArray(E[] a)Returns an array containing all of the elements in this list in proper
 sequence (from first to last element). | 
| default List<T> | toListCopy()Create a new list containing all entries of this list. | 
forEach, iterator, spliteratorT get(int id)
id - The id of the object to get.int size()
NBTType getType()
boolean isEmpty()
boolean contains(Object o)
o - The object to be searched for in the list.int indexOf(Object o)
o - The object to search for.boolean containsAll(Collection<?> c)
c - The collection to be checked for containment in this listint lastIndexOf(Object o)
o - The object to search for.Object[] toArray()
<E> E[] toArray(E[] a)
a - The array into which the elements of the list are to be stored, if
          it is big enough; otherwise, a new array of the same runtime type is
          allocated for this purpose.List<T> subList(int fromIndex, int toIndex)
fromIndex - The starting index of the sublist (inclusive).toIndex - The index of the last element in the sublist.Copyright © 2015–2025 tr7zw. All rights reserved.