Package net.minecraft.nbt
Class IntArrayNBT
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCountFields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidclear()copy()booleanget(int p_get_1_) int[]bytebytegetId()getPrettyDisplay(String p_199850_1_, int p_199850_2_) getType()inthashCode()remove(int p_remove_1_) booleanintsize()private static int[]toString()voidwrite(DataOutput p_74734_1_) 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 net.minecraft.nbt.INBT
getAsString, getPrettyDisplayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
TYPE
-
data
private int[] data
-
-
Constructor Details
-
IntArrayNBT
public IntArrayNBT(int[] p_i45132_1_) -
IntArrayNBT
-
-
Method Details
-
toArray
-
write
- Throws:
IOException
-
getId
public byte getId() -
getType
-
toString
- Specified by:
toStringin interfaceINBT- Overrides:
toStringin classAbstractCollection<IntNBT>
-
copy
-
equals
- Specified by:
equalsin interfaceCollection<IntNBT>- Specified by:
equalsin interfaceList<IntNBT>- Overrides:
equalsin classAbstractList<IntNBT>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<IntNBT>- Specified by:
hashCodein interfaceList<IntNBT>- Overrides:
hashCodein classAbstractList<IntNBT>
-
getAsIntArray
public int[] getAsIntArray() -
getPrettyDisplay
-
size
public int size()- Specified by:
sizein interfaceCollection<IntNBT>- Specified by:
sizein interfaceList<IntNBT>- Specified by:
sizein classAbstractCollection<IntNBT>
-
get
-
set
-
add
-
setTag
- Specified by:
setTagin classCollectionNBT<IntNBT>
-
addTag
- Specified by:
addTagin classCollectionNBT<IntNBT>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementTypein classCollectionNBT<IntNBT>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<IntNBT>- Specified by:
clearin interfaceList<IntNBT>- Overrides:
clearin classAbstractList<IntNBT>
-