Package net.minecraft.nbt
Class ByteArrayTag
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
Fields inherited from interface net.minecraft.nbt.Tag
ARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, TAG_ANY_NUMERIC, TAG_BYTE, TAG_BYTE_ARRAY, TAG_COMPOUND, TAG_DOUBLE, TAG_END, TAG_FLOAT, TAG_INT, TAG_INT_ARRAY, TAG_LIST, TAG_LONG, TAG_LONG_ARRAY, TAG_SHORT, TAG_STRING
-
Constructor Summary
-
Method Summary
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
Methods inherited from interface net.minecraft.nbt.Tag
getAsString
-
Field Details
-
SELF_SIZE_IN_BITS
private static final int SELF_SIZE_IN_BITS- See Also:
- Constant Field Values
-
TYPE
-
data
private byte[] data
-
-
Constructor Details
-
ByteArrayTag
public ByteArrayTag(byte[] p_128191_) -
ByteArrayTag
-
-
Method Details
-
toArray
-
write
- Throws:
IOException
-
getId
public byte getId() -
getType
-
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>
-
accept
-
getAsByteArray
public byte[] getAsByteArray() -
size
public int size()- Specified by:
size
in interfaceCollection<ByteTag>
- Specified by:
size
in interfaceList<ByteTag>
- Specified by:
size
in classAbstractCollection<ByteTag>
-
get
-
set
-
add
-
setTag
- Specified by:
setTag
in classCollectionTag<ByteTag>
-
addTag
- Specified by:
addTag
in classCollectionTag<ByteTag>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classCollectionTag<ByteTag>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<ByteTag>
- Specified by:
clear
in interfaceList<ByteTag>
- Overrides:
clear
in classAbstractList<ByteTag>
-