Package net.minecraft.nbt
Class IntArrayTag
public class IntArrayTag extends AbstractListTag<IntTag>
-
Field Summary
Fields Modifier and Type Field Description static TagReader<IntArrayTag>
READER
private int[]
value
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors Constructor Description IntArrayTag(int[] value)
IntArrayTag(List<Integer> value)
-
Method Summary
Modifier and Type Method Description void
add(int int2, IntTag intTag)
boolean
addTag(int index, Tag tag)
void
clear()
IntArrayTag
copy()
boolean
equals(Object o)
IntTag
get(int int2)
byte
getElementType()
int[]
getIntArray()
TagReader<IntArrayTag>
getReader()
byte
getType()
int
hashCode()
IntTag
remove(int int2)
IntTag
set(int int2, IntTag intTag)
boolean
setTag(int index, Tag tag)
int
size()
private static int[]
toArray(List<Integer> list)
String
toString()
Text
toText(String indent, int depth)
void
write(DataOutput output)
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, isEmpty, 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, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
READER
-
value
private int[] value
-
-
Constructor Details
-
IntArrayTag
public IntArrayTag(int[] value) -
IntArrayTag
-
-
Method Details
-
toArray
-
write
- Throws:
IOException
-
getType
public byte getType() -
getReader
-
toString
- Specified by:
toString
in interfaceTag
- Overrides:
toString
in classAbstractCollection<IntTag>
-
copy
-
equals
- Specified by:
equals
in interfaceCollection<IntTag>
- Specified by:
equals
in interfaceList<IntTag>
- Overrides:
equals
in classAbstractList<IntTag>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<IntTag>
- Specified by:
hashCode
in interfaceList<IntTag>
- Overrides:
hashCode
in classAbstractList<IntTag>
-
getIntArray
public int[] getIntArray() -
toText
-
size
public int size()- Specified by:
size
in interfaceCollection<IntTag>
- Specified by:
size
in interfaceList<IntTag>
- Specified by:
size
in classAbstractCollection<IntTag>
-
get
-
set
-
add
-
setTag
- Specified by:
setTag
in classAbstractListTag<IntTag>
-
addTag
- Specified by:
addTag
in classAbstractListTag<IntTag>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classAbstractListTag<IntTag>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<IntTag>
- Specified by:
clear
in interfaceList<IntTag>
- Overrides:
clear
in classAbstractList<IntTag>
-