| Constructor and Description |
|---|
LongArrayTag()
Create an empty long array tag.
|
LongArrayTag(ListTag<LongTag> list)
|
LongArrayTag(long[] value)
Create a long array tag from a long array.
|
| Modifier and Type | Method and Description |
|---|---|
LongArrayTag |
add(long l)
Add a long to the array.
|
INbtTag |
copy() |
boolean |
equals(java.lang.Object o) |
long |
get(int index)
Get a long from the array.
|
int |
getLength() |
NbtType |
getNbtType() |
long[] |
getValue() |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<java.lang.Long> |
iterator() |
LongArrayTag |
set(int index,
long l)
Set a long in the array.
|
LongArrayTag |
setValue(long[] value)
Set the long array value.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasByteArrayTag, asByteTag, asCompoundTag, asDoubleTag, asFloatTag, asIntArrayTag, asIntTag, asListTag, asLongArrayTag, asLongTag, asShortTag, asStringTagpublic LongArrayTag()
public LongArrayTag(long[] value)
value - The long arraypublic long[] getValue()
public LongArrayTag setValue(long[] value)
value - The new valuepublic long get(int index)
index - The indexpublic LongArrayTag set(int index, long l)
index - The indexl - The new valuepublic LongArrayTag add(long l)
l - The longpublic int getLength()
public boolean isEmpty()
public NbtType getNbtType()
getNbtType in interface INbtTagpublic INbtTag copy()
public java.util.Iterator<java.lang.Long> iterator()
iterator in interface java.lang.Iterable<java.lang.Long>public boolean equals(java.lang.Object o)
public int hashCode()