Package net.minecraft.nbt
Class IntArrayNBT
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- net.minecraft.nbt.CollectionNBT<IntNBT>
-
- net.minecraft.nbt.IntArrayNBT
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
data
static INBTType<IntArrayNBT>
TYPE
-
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
-
Constructor Summary
Constructors Constructor Description IntArrayNBT(int[] p_i45132_1_)
IntArrayNBT(java.util.List<java.lang.Integer> p_i47528_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int p_add_1_, IntNBT p_add_2_)
boolean
addTag(int p_218660_1_, INBT p_218660_2_)
void
clear()
IntArrayNBT
copy()
boolean
equals(java.lang.Object p_equals_1_)
IntNBT
get(int p_get_1_)
int[]
getAsIntArray()
byte
getElementType()
byte
getId()
ITextComponent
getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
INBTType<IntArrayNBT>
getType()
int
hashCode()
IntNBT
remove(int p_remove_1_)
IntNBT
set(int p_set_1_, IntNBT p_set_2_)
boolean
setTag(int p_218659_1_, INBT p_218659_2_)
int
size()
private static int[]
toArray(java.util.List<java.lang.Integer> p_193584_0_)
java.lang.String
toString()
void
write(java.io.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 net.minecraft.nbt.INBT
getAsString, getPrettyDisplay
-
-
-
-
Field Detail
-
TYPE
public static final INBTType<IntArrayNBT> TYPE
-
data
private int[] data
-
-
Method Detail
-
toArray
private static int[] toArray(java.util.List<java.lang.Integer> p_193584_0_)
-
write
public void write(java.io.DataOutput p_74734_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
getId
public byte getId()
-
getType
public INBTType<IntArrayNBT> getType()
-
toString
public java.lang.String toString()
-
copy
public IntArrayNBT copy()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
-
hashCode
public int hashCode()
-
getAsIntArray
public int[] getAsIntArray()
-
getPrettyDisplay
public ITextComponent getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
-
size
public int size()
-
get
public IntNBT get(int p_get_1_)
-
set
public IntNBT set(int p_set_1_, IntNBT p_set_2_)
- Specified by:
set
in interfacejava.util.List<IntNBT>
- Specified by:
set
in classCollectionNBT<IntNBT>
-
add
public void add(int p_add_1_, IntNBT p_add_2_)
- Specified by:
add
in interfacejava.util.List<IntNBT>
- Specified by:
add
in classCollectionNBT<IntNBT>
-
setTag
public boolean setTag(int p_218659_1_, INBT p_218659_2_)
- Specified by:
setTag
in classCollectionNBT<IntNBT>
-
addTag
public boolean addTag(int p_218660_1_, INBT p_218660_2_)
- Specified by:
addTag
in classCollectionNBT<IntNBT>
-
remove
public IntNBT remove(int p_remove_1_)
- Specified by:
remove
in interfacejava.util.List<IntNBT>
- Specified by:
remove
in classCollectionNBT<IntNBT>
-
getElementType
public byte getElementType()
- Specified by:
getElementType
in classCollectionNBT<IntNBT>
-
-