public class ByteArrayTag extends AbstractListTag<ByteTag>
Modifier and Type | Field and Description |
---|---|
static TagReader<ByteArrayTag> |
READER |
private byte[] |
value |
modCount
Constructor and Description |
---|
ByteArrayTag(byte[] value) |
ByteArrayTag(List<Byte> value) |
Modifier and Type | Method and Description |
---|---|
boolean |
addTag(int index,
Tag tag) |
void |
clear() |
Tag |
copy() |
boolean |
equals(Object o) |
ByteTag |
get(int int2) |
byte[] |
getByteArray() |
byte |
getElementType() |
TagReader<ByteArrayTag> |
getReader() |
byte |
getType() |
int |
hashCode() |
void |
method_10531(int int2,
ByteTag byteTag) |
ByteTag |
method_10536(int int2) |
ByteTag |
set(int int2,
ByteTag byteTag) |
boolean |
setTag(int index,
Tag tag) |
int |
size() |
private static byte[] |
toArray(List<Byte> list) |
String |
toString() |
Text |
toText(String indent,
int depth) |
void |
write(DataOutput output) |
add, remove
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public static final TagReader<ByteArrayTag> READER
private byte[] value
public void write(DataOutput output) throws IOException
IOException
public byte getType()
public TagReader<ByteArrayTag> getReader()
public String toString()
toString
in interface Tag
toString
in class AbstractCollection<ByteTag>
public Tag copy()
public boolean equals(Object o)
equals
in interface Collection<ByteTag>
equals
in interface List<ByteTag>
equals
in class AbstractList<ByteTag>
public int hashCode()
hashCode
in interface Collection<ByteTag>
hashCode
in interface List<ByteTag>
hashCode
in class AbstractList<ByteTag>
public byte[] getByteArray()
public int size()
size
in interface Collection<ByteTag>
size
in interface List<ByteTag>
size
in class AbstractCollection<ByteTag>
public ByteTag get(int int2)
public void method_10531(int int2, ByteTag byteTag)
public boolean setTag(int index, Tag tag)
setTag
in class AbstractListTag<ByteTag>
public boolean addTag(int index, Tag tag)
addTag
in class AbstractListTag<ByteTag>
public ByteTag method_10536(int int2)
public byte getElementType()
getElementType
in class AbstractListTag<ByteTag>
public void clear()
clear
in interface Collection<ByteTag>
clear
in interface List<ByteTag>
clear
in class AbstractList<ByteTag>