Package net.minecraft.nbt
Class ByteArrayTag
public class ByteArrayTag extends AbstractListTag<ByteTag>
-
Field Summary
Fields Modifier and Type Field Description static TagReader<ByteArrayTag>
READER
private byte[]
value
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors Constructor Description ByteArrayTag(byte[] value)
ByteArrayTag(List<Byte> value)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.nbt.AbstractListTag
add, remove
Methods inherited from class java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
READER
-
value
private byte[] value
-
-
Constructor Details
-
ByteArrayTag
public ByteArrayTag(byte[] value) -
ByteArrayTag
-
-
Method Details
-
toArray
-
write
- Throws:
IOException
-
getType
public byte getType() -
getReader
-
toString
- Specified by:
toString
in interfaceTag
- Overrides:
toString
in classAbstractCollection<ByteTag>
-
copy
-
equals
- Specified by:
equals
in interfaceCollection<ByteTag>
- Specified by:
equals
in interfaceList<ByteTag>
- Overrides:
equals
in classAbstractList<ByteTag>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<ByteTag>
- Specified by:
hashCode
in interfaceList<ByteTag>
- Overrides:
hashCode
in classAbstractList<ByteTag>
-
toText
-
getByteArray
public byte[] getByteArray() -
size
public int size()- Specified by:
size
in interfaceCollection<ByteTag>
- Specified by:
size
in interfaceList<ByteTag>
- Specified by:
size
in classAbstractCollection<ByteTag>
-
get
-
set
-
method_10531
-
setTag
- Specified by:
setTag
in classAbstractListTag<ByteTag>
-
addTag
- Specified by:
addTag
in classAbstractListTag<ByteTag>
-
method_10536
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classAbstractListTag<ByteTag>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<ByteTag>
- Specified by:
clear
in interfaceList<ByteTag>
- Overrides:
clear
in classAbstractList<ByteTag>
-