| Modifier and Type | Field and Description |
|---|---|
static int |
ID |
| Constructor and Description |
|---|
LongArrayTag()
Creates a tag.
|
LongArrayTag(long[] value)
Creates a tag.
|
| Modifier and Type | Method and Description |
|---|---|
LongArrayTag |
clone() |
boolean |
equals(Object o) |
int |
getTagId()
Returns the NBT tag id of this tag type, used in I/O.
|
long[] |
getValue()
Gets the value of this tag.
|
long |
getValue(int index)
Gets a value in this tag's array.
|
int |
hashCode() |
int |
length()
Gets the length of this tag's array.
|
void |
read(DataInput in)
Reads this tag from an input stream.
|
void |
setValue(int index,
long value)
Sets a value in this tag's array.
|
void |
setValue(long[] value)
Sets the value of this tag.
|
void |
write(DataOutput out)
Writes this tag to an output stream.
|
public static final int ID
public LongArrayTag()
public LongArrayTag(long[] value)
value - The value of the tag.public long[] getValue()
Tagpublic void setValue(long[] value)
value - New value of this tag.public long getValue(int index)
index - Index of the value.public void setValue(int index,
long value)
index - Index of the value.value - Value to set.public int length()
public void read(DataInput in) throws IOException
Tagread in class Tagin - Stream to write to.IOException - If an I/O error occurs.public void write(DataOutput out) throws IOException
Tagwrite in class Tagout - Stream to write to.IOException - If an I/O error occurs.public final LongArrayTag clone()
Copyright © 2021. All rights reserved.