| Constructor and Description |
|---|
IntArrayTag()
Create an empty int array tag.
|
IntArrayTag(int[] value)
Create an int array tag from an int array.
|
IntArrayTag(ListTag<IntTag> list)
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int i)
Add an int to the array.
|
INbtTag |
copy() |
boolean |
equals(java.lang.Object o) |
int |
get(int index)
Get an int from the array.
|
int |
getLength() |
NbtType |
getNbtType() |
int[] |
getValue() |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<java.lang.Integer> |
iterator() |
void |
read(java.io.DataInput in,
NbtReadTracker readTracker)
Read the tag value from a given
DataInput. |
void |
set(int index,
int i)
Set an int in the array.
|
void |
setValue(int[] value)
Set the int array value.
|
java.lang.String |
toString() |
void |
write(java.io.DataOutput out)
Write the tag value to a given
DataOutput. |
public IntArrayTag()
public IntArrayTag(int[] value)
value - The int arraypublic int[] getValue()
public void setValue(int[] value)
value - The new valuepublic int get(int index)
index - The indexpublic void set(int index,
int i)
index - The indexi - The new valuepublic void add(int i)
i - The intpublic int getLength()
public boolean isEmpty()
public NbtType getNbtType()
getNbtType in interface INbtTagpublic void read(java.io.DataInput in,
NbtReadTracker readTracker)
throws java.io.IOException
INbtTagDataInput.public void write(java.io.DataOutput out)
throws java.io.IOException
INbtTagDataOutput.public INbtTag copy()
public java.util.Iterator<java.lang.Integer> iterator()
iterator in interface java.lang.Iterable<java.lang.Integer>public boolean equals(java.lang.Object o)
public int hashCode()