Package net.minecraft.nbt
Class ListTag
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private byte
Fields inherited from class java.util.AbstractList
modCount
Fields inherited from interface net.minecraft.nbt.Tag
ARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, TAG_ANY_NUMERIC, TAG_BYTE, TAG_BYTE_ARRAY, TAG_COMPOUND, TAG_DOUBLE, TAG_END, TAG_FLOAT, TAG_INT, TAG_INT_ARRAY, TAG_LIST, TAG_LONG, TAG_LONG_ARRAY, TAG_SHORT, TAG_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccept
(StreamTagVisitor p_197487_) void
accept
(TagVisitor p_177990_) void
boolean
void
clear()
copy()
boolean
get
(int p_128781_) getCompound
(int p_128729_) double
getDouble
(int p_128773_) byte
float
getFloat
(int p_128776_) byte
getId()
int
getInt
(int p_128764_) int[]
getIntArray
(int p_128768_) getList
(int p_128745_) long[]
getLongArray
(int p_177992_) short
getShort
(int p_128758_) getString
(int p_128779_) getType()
int
hashCode()
boolean
isEmpty()
remove
(int p_128751_) boolean
int
size()
int
toString()
private boolean
updateType
(Tag p_128739_) private void
void
write
(DataOutput p_128734_) Methods inherited from class java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
Methods inherited from interface net.minecraft.nbt.Tag
acceptAsRoot, getAsString
-
Field Details
-
SELF_SIZE_IN_BYTES
private static final int SELF_SIZE_IN_BYTES- See Also:
-
TYPE
-
list
-
type
private byte type
-
-
Constructor Details
-
ListTag
-
ListTag
public ListTag()
-
-
Method Details
-
write
- Throws:
IOException
-
sizeInBytes
public int sizeInBytes() -
getId
public byte getId() -
getType
-
toString
- Specified by:
toString
in interfaceTag
- Overrides:
toString
in classAbstractCollection<Tag>
-
updateTypeAfterRemove
private void updateTypeAfterRemove() -
remove
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<Tag>
- Specified by:
isEmpty
in interfaceList<Tag>
- Overrides:
isEmpty
in classAbstractCollection<Tag>
-
getCompound
-
getList
-
getShort
public short getShort(int p_128758_) -
getInt
public int getInt(int p_128764_) -
getIntArray
public int[] getIntArray(int p_128768_) -
getLongArray
public long[] getLongArray(int p_177992_) -
getDouble
public double getDouble(int p_128773_) -
getFloat
public float getFloat(int p_128776_) -
getString
-
size
public int size()- Specified by:
size
in interfaceCollection<Tag>
- Specified by:
size
in interfaceList<Tag>
- Specified by:
size
in classAbstractCollection<Tag>
-
get
-
set
-
add
-
setTag
- Specified by:
setTag
in classCollectionTag<Tag>
-
addTag
- Specified by:
addTag
in classCollectionTag<Tag>
-
updateType
-
copy
-
equals
- Specified by:
equals
in interfaceCollection<Tag>
- Specified by:
equals
in interfaceList<Tag>
- Overrides:
equals
in classAbstractList<Tag>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<Tag>
- Specified by:
hashCode
in interfaceList<Tag>
- Overrides:
hashCode
in classAbstractList<Tag>
-
accept
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classCollectionTag<Tag>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<Tag>
- Specified by:
clear
in interfaceList<Tag>
- Overrides:
clear
in classAbstractList<Tag>
-
accept
-