Package net.minecraft.nbt
Class IntArrayNBT
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
clear()
copy()
boolean
get
(int p_get_1_) int[]
byte
byte
getId()
getPrettyDisplay
(String p_199850_1_, int p_199850_2_) getType()
int
hashCode()
remove
(int p_remove_1_) boolean
int
size()
private static int[]
toString()
void
write
(DataOutput p_74734_1_) 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 net.minecraft.nbt.INBT
getAsString, getPrettyDisplay
Methods 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:
toString
in interfaceINBT
- Overrides:
toString
in classAbstractCollection<IntNBT>
-
copy
-
equals
- Specified by:
equals
in interfaceCollection<IntNBT>
- Specified by:
equals
in interfaceList<IntNBT>
- Overrides:
equals
in classAbstractList<IntNBT>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<IntNBT>
- Specified by:
hashCode
in interfaceList<IntNBT>
- Overrides:
hashCode
in classAbstractList<IntNBT>
-
getAsIntArray
public int[] getAsIntArray() -
getPrettyDisplay
-
size
public int size()- Specified by:
size
in interfaceCollection<IntNBT>
- Specified by:
size
in interfaceList<IntNBT>
- Specified by:
size
in classAbstractCollection<IntNBT>
-
get
-
set
-
add
-
setTag
- Specified by:
setTag
in classCollectionNBT<IntNBT>
-
addTag
- Specified by:
addTag
in classCollectionNBT<IntNBT>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classCollectionNBT<IntNBT>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<IntNBT>
- Specified by:
clear
in interfaceList<IntNBT>
- Overrides:
clear
in classAbstractList<IntNBT>
-