| 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 |
set(int index,
int i)
Set an int in the array.
|
void |
setValue(int[] value)
Set the int array value.
|
java.lang.String |
toString() |
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 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()