| Modifier and Type | Field and Description |
|---|---|
static int |
ID |
| Constructor and Description |
|---|
LongTag()
Creates a tag.
|
LongTag(long value)
Creates a tag.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
asByte()
Gets the byte value of this tag.
|
double |
asDouble()
Gets the double value of this tag.
|
float |
asFloat()
Gets the float value of this tag.
|
int |
asInt()
Gets the int value of this tag.
|
long |
asLong()
Gets the long value of this tag.
|
short |
asShort()
Gets the short value of this tag.
|
LongTag |
clone() |
boolean |
equals(Object o) |
int |
getTagId()
Returns the NBT tag id of this tag type, used in I/O.
|
Long |
getValue()
Deprecated.
use
asLong() |
int |
hashCode() |
void |
read(DataInput in)
Reads this tag from an input stream.
|
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 LongTag()
public LongTag(long value)
value - The value of the tag.@Deprecated public Long getValue()
asLong()Tagpublic void setValue(long value)
value - New value of this tag.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 byte asByte()
NumberTagpublic short asShort()
NumberTagpublic int asInt()
NumberTagpublic long asLong()
NumberTagpublic float asFloat()
NumberTagpublic double asDouble()
NumberTagCopyright © 2021. All rights reserved.