Package net.minecraft.nbt
Class ByteArrayTag
public class ByteArrayTag extends AbstractListTag<ByteTag>
-
Field Summary
Fields Modifier and Type Field Description static TagReader<ByteArrayTag>READERprivate byte[]valueFields 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 voidaccept(NbtTagVisitor visitor)booleanaddTag(int index, Tag tag)voidclear()Tagcopy()booleanequals(Object o)ByteTagget(int int2)byte[]getByteArray()bytegetElementType()TagReader<ByteArrayTag>getReader()bytegetType()inthashCode()voidmethod_10531(int int2, ByteTag byteTag)ByteTagmethod_10536(int int2)ByteTagset(int int2, ByteTag byteTag)booleansetTag(int index, Tag tag)intsize()private static byte[]toArray(List<Byte> list)StringtoString()voidwrite(DataOutput output)Methods inherited from class net.minecraft.nbt.AbstractListTag
add, removeMethods inherited from class java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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:
toStringin interfaceTag- Overrides:
toStringin classAbstractCollection<ByteTag>
-
copy
-
equals
- Specified by:
equalsin interfaceCollection<ByteTag>- Specified by:
equalsin interfaceList<ByteTag>- Overrides:
equalsin classAbstractList<ByteTag>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<ByteTag>- Specified by:
hashCodein interfaceList<ByteTag>- Overrides:
hashCodein classAbstractList<ByteTag>
-
accept
-
getByteArray
public byte[] getByteArray() -
size
public int size()- Specified by:
sizein interfaceCollection<ByteTag>- Specified by:
sizein interfaceList<ByteTag>- Specified by:
sizein classAbstractCollection<ByteTag>
-
get
-
set
-
method_10531
-
setTag
- Specified by:
setTagin classAbstractListTag<ByteTag>
-
addTag
- Specified by:
addTagin classAbstractListTag<ByteTag>
-
method_10536
-
getElementType
public byte getElementType()- Specified by:
getElementTypein classAbstractListTag<ByteTag>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<ByteTag>- Specified by:
clearin interfaceList<ByteTag>- Overrides:
clearin classAbstractList<ByteTag>
-