| Constructor and Description |
|---|
ByteArrayTag(String name)
Creates a tag with the specified name.
|
ByteArrayTag(String name,
byte[] value)
Creates a tag with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
ByteArrayTag |
clone() |
void |
destringify(SNBTIO.StringifiedNBTReader in)
Parses this tag from stringified NBT.
|
byte[] |
getValue()
Gets the value of this tag.
|
byte |
getValue(int index)
Gets a value in this tag's array.
|
int |
length()
Gets the length of this tag's array.
|
void |
read(DataInput in)
Reads this tag from an input stream.
|
void |
setValue(byte[] value)
Sets the value of this tag.
|
void |
setValue(int index,
byte value)
Sets a value in this tag's array.
|
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 ByteArrayTag(String name)
name - The name of the tag.public ByteArrayTag(String name, byte[] value)
name - The name of the tag.value - The value of the tag.public byte[] getValue()
Tagpublic void setValue(byte[] value)
value - New value of this tag.public byte getValue(int index)
index - Index of the value.public void setValue(int index,
byte 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 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 TagIOExceptionpublic ByteArrayTag clone()
Copyright © 2021. All rights reserved.