| Constructor and Description |
|---|
ByteArrayTag()
Create an empty byte array tag.
|
ByteArrayTag(byte[] value)
Create a byte array tag from a byte array.
|
ByteArrayTag(ListTag<ByteTag> list)
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte b)
Add a byte to the array.
|
INbtTag |
copy() |
boolean |
equals(java.lang.Object o) |
byte |
get(int index)
Get a byte from the array.
|
int |
getLength() |
NbtType |
getNbtType() |
byte[] |
getValue() |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<java.lang.Byte> |
iterator() |
void |
set(int index,
byte b)
Set a byte in the array.
|
void |
setValue(byte[] value)
Set the byte array value.
|
java.lang.String |
toString() |
public ByteArrayTag()
public ByteArrayTag(byte[] value)
value - The byte arraypublic byte[] getValue()
public void setValue(byte[] value)
value - The new valuepublic byte get(int index)
index - The indexjava.lang.ArrayIndexOutOfBoundsException - If the index is out of boundspublic void set(int index,
byte b)
index - The indexb - The new valuejava.lang.ArrayIndexOutOfBoundsException - If the index is out of boundspublic void add(byte b)
b - The bytepublic int getLength()
public boolean isEmpty()
public NbtType getNbtType()
getNbtType in interface INbtTagpublic INbtTag copy()
public java.util.Iterator<java.lang.Byte> iterator()
iterator in interface java.lang.Iterable<java.lang.Byte>public boolean equals(java.lang.Object o)
public int hashCode()