public class ByteArrayTag extends java.lang.Object implements NbtTag, NbtArray<ByteArrayTag,ByteTag,byte[],java.lang.Byte>
| 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 |
|---|---|
ByteArrayTag |
add(byte b)
Add a byte to the array.
|
ByteArrayTag |
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() |
ByteArrayTag |
set(int index,
byte b)
Set a byte in the array.
|
ByteArrayTag |
setValue(byte[] value)
Set the array value.
|
ListTag<ByteTag> |
toListTag() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasArrayTag, asByteArrayTag, asByteTag, asCompoundTag, asDoubleTag, asFloatTag, asIntArrayTag, asIntTag, asListTag, asLongArrayTag, asLongTag, asNumberTag, asShortTag, asStringTag, isArrayTag, isByteArrayTag, isByteTag, isCompoundTag, isDoubleTag, isFloatTag, isIntArrayTag, isIntTag, isListTag, isLongArrayTag, isLongTag, isNumberTag, isShortTag, isStringTagpublic ByteArrayTag()
public ByteArrayTag(byte[] value)
value - The byte arraypublic byte[] getValue()
getValue in interface NbtArray<ByteArrayTag,ByteTag,byte[],java.lang.Byte>public ByteArrayTag setValue(byte[] value)
NbtArraysetValue in interface NbtArray<ByteArrayTag,ByteTag,byte[],java.lang.Byte>value - The new valuepublic byte get(int index)
index - The indexjava.lang.ArrayIndexOutOfBoundsException - If the index is out of boundspublic ByteArrayTag set(int index, byte b)
index - The indexb - The new valuejava.lang.ArrayIndexOutOfBoundsException - If the index is out of boundspublic ByteArrayTag add(byte b)
b - The bytepublic int getLength()
getLength in interface NbtArray<ByteArrayTag,ByteTag,byte[],java.lang.Byte>public boolean isEmpty()
isEmpty in interface NbtArray<ByteArrayTag,ByteTag,byte[],java.lang.Byte>public ListTag<ByteTag> toListTag()
toListTag in interface NbtArray<ByteArrayTag,ByteTag,byte[],java.lang.Byte>ListTagpublic NbtType getNbtType()
getNbtType in interface NbtTagpublic ByteArrayTag 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()