Package net.minecraft.nbt
Class IntArrayTag
public class IntArrayTag extends AbstractListTag<IntTag>
-
Field Summary
Fields Modifier and Type Field Description static TagReader<IntArrayTag>READERprivate int[]valueFields 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 voidaccept(NbtTagVisitor visitor)voidadd(int int2, IntTag intTag)booleanaddTag(int index, Tag tag)voidclear()IntArrayTagcopy()booleanequals(Object o)IntTagget(int int2)bytegetElementType()int[]getIntArray()TagReader<IntArrayTag>getReader()bytegetType()inthashCode()IntTagremove(int int2)IntTagset(int int2, IntTag intTag)booleansetTag(int index, Tag tag)intsize()private static int[]toArray(List<Integer> list)StringtoString()voidwrite(DataOutput output)Methods inherited from class java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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:
toStringin interfaceTag- Overrides:
toStringin classAbstractCollection<IntTag>
-
copy
-
equals
- Specified by:
equalsin interfaceCollection<IntTag>- Specified by:
equalsin interfaceList<IntTag>- Overrides:
equalsin classAbstractList<IntTag>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<IntTag>- Specified by:
hashCodein interfaceList<IntTag>- Overrides:
hashCodein classAbstractList<IntTag>
-
getIntArray
public int[] getIntArray() -
accept
-
size
public int size()- Specified by:
sizein interfaceCollection<IntTag>- Specified by:
sizein interfaceList<IntTag>- Specified by:
sizein classAbstractCollection<IntTag>
-
get
-
set
-
add
-
setTag
- Specified by:
setTagin classAbstractListTag<IntTag>
-
addTag
- Specified by:
addTagin classAbstractListTag<IntTag>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementTypein classAbstractListTag<IntTag>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<IntTag>- Specified by:
clearin interfaceList<IntTag>- Overrides:
clearin classAbstractList<IntTag>
-