public class ListTag extends AbstractListTag<Tag>
| Modifier and Type | Field and Description |
|---|---|
private static it.unimi.dsi.fastutil.bytes.ByteSet |
NBT_NUMBER_TYPES |
static TagReader<ListTag> |
READER |
private byte |
type |
private List<Tag> |
value |
modCount| Modifier | Constructor and Description |
|---|---|
|
ListTag() |
private |
ListTag(List<Tag> list,
byte type) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int int2,
Tag tag) |
boolean |
addTag(int index,
Tag tag) |
private boolean |
canAdd(Tag tag) |
void |
clear() |
ListTag |
copy() |
boolean |
equals(Object o) |
private void |
forgetTypeIfEmpty() |
Tag |
get(int int2) |
CompoundTag |
getCompound(int index) |
double |
getDouble(int index) |
byte |
getElementType() |
float |
getFloat(int index) |
int |
getInt(int int2) |
int[] |
getIntArray(int index) |
ListTag |
getList(int index) |
TagReader<ListTag> |
getReader() |
short |
getShort(int index) |
String |
getString(int index) |
byte |
getType() |
int |
hashCode() |
boolean |
isEmpty() |
Tag |
remove(int int2) |
Tag |
set(int int2,
Tag tag) |
boolean |
setTag(int index,
Tag tag) |
int |
size() |
String |
toString() |
Text |
toText(String indent,
int depth) |
void |
write(DataOutput output) |
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streamprivate static final it.unimi.dsi.fastutil.bytes.ByteSet NBT_NUMBER_TYPES
private byte type
public void write(DataOutput output) throws IOException
IOExceptionpublic byte getType()
public String toString()
toString in interface TagtoString in class AbstractCollection<Tag>private void forgetTypeIfEmpty()
public Tag remove(int int2)
public boolean isEmpty()
isEmpty in interface Collection<Tag>isEmpty in interface List<Tag>isEmpty in class AbstractCollection<Tag>public CompoundTag getCompound(int index)
public ListTag getList(int index)
public short getShort(int index)
public int getInt(int int2)
public int[] getIntArray(int index)
public double getDouble(int index)
public float getFloat(int index)
public String getString(int index)
public int size()
size in interface Collection<Tag>size in interface List<Tag>size in class AbstractCollection<Tag>public Tag get(int int2)
public void add(int int2,
Tag tag)
public boolean setTag(int index,
Tag tag)
setTag in class AbstractListTag<Tag>public boolean addTag(int index,
Tag tag)
addTag in class AbstractListTag<Tag>private boolean canAdd(Tag tag)
public ListTag copy()
public boolean equals(Object o)
equals in interface Collection<Tag>equals in interface List<Tag>equals in class AbstractList<Tag>public int hashCode()
hashCode in interface Collection<Tag>hashCode in interface List<Tag>hashCode in class AbstractList<Tag>public byte getElementType()
getElementType in class AbstractListTag<Tag>public void clear()
clear in interface Collection<Tag>clear in interface List<Tag>clear in class AbstractList<Tag>