| 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 |
|---|---|
void |
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() |
void |
read(java.io.DataInput in,
NbtReadTracker readTracker)
Read the tag value from a given
DataInput. |
void |
set(int index,
long l)
Set a long in the array.
|
void |
setValue(long[] value)
Set the long array value.
|
java.lang.String |
toString() |
void |
write(java.io.DataOutput out)
Write the tag value to a given
DataOutput. |
public LongArrayTag()
public LongArrayTag(long[] value)
value - The long arraypublic long[] getValue()
public void setValue(long[] value)
value - The new valuepublic long get(int index)
index - The indexpublic void set(int index,
long l)
index - The indexl - The new valuepublic void add(long l)
l - The longpublic 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.Long> iterator()
iterator in interface java.lang.Iterable<java.lang.Long>public boolean equals(java.lang.Object o)
public int hashCode()