| Constructor and Description |
|---|
ByteTag(String name)
Creates a tag with the specified name.
|
ByteTag(String name,
byte value)
Creates a tag with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
ByteTag |
clone() |
void |
destringify(SNBTIO.StringifiedNBTReader in)
Parses this tag from stringified NBT.
|
Byte |
getValue()
Gets the value of this tag.
|
void |
read(DataInput in)
Reads this tag from an input stream.
|
void |
setValue(byte value)
Sets the value of this tag.
|
void |
stringify(SNBTIO.StringifiedNBTWriter out,
boolean linebreak,
int depth)
Write this tag as stringified NBT.
|
void |
write(DataOutput out)
Writes this tag to an output stream.
|
public ByteTag(String name)
name - The name of the tag.public ByteTag(String name, byte value)
name - The name of the tag.value - The value of the tag.public void setValue(byte value)
value - New value of this tag.public void read(DataInput in) throws IOException
Tagread in class Tagin - Stream to read from.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 void destringify(SNBTIO.StringifiedNBTReader in) throws IOException
Tagdestringify in class Tagin - String to parse.IOExceptionpublic void stringify(SNBTIO.StringifiedNBTWriter out, boolean linebreak, int depth) throws IOException
Tagstringify in class TagIOExceptionCopyright © 2021. All rights reserved.