Class ByteArrayTag
java.lang.Object
net.minecraft.nbt.ByteArrayTag
- All Implemented Interfaces:
Iterable<Tag>, CollectionTag, Tag
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private static final intstatic final TagType<ByteArrayTag> Fields inherited from interface Tag
ARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, 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
Constructors -
Method Summary
Methods inherited from interface CollectionTag
isEmpty, iterator, streamMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Tag
acceptAsRoot, asBoolean, asByte, asCompound, asDouble, asFloat, asInt, asIntArray, asList, asLong, asLongArray, asNumber, asShort, asString
-
Field Details
-
SELF_SIZE_IN_BYTES
private static final int SELF_SIZE_IN_BYTES- See Also:
-
TYPE
-
data
private byte[] data
-
-
Constructor Details
-
ByteArrayTag
public ByteArrayTag(byte[] data)
-
-
Method Details
-
write
- Specified by:
writein interfaceTag- Throws:
IOException
-
sizeInBytes
public int sizeInBytes()- Specified by:
sizeInBytesin interfaceTag
-
getId
-
getType
-
toString
-
copy
-
equals
-
hashCode
-
accept
-
getAsByteArray
public byte[] getAsByteArray() -
size
public int size()- Specified by:
sizein interfaceCollectionTag
-
get
- Specified by:
getin interfaceCollectionTag
-
setTag
- Specified by:
setTagin interfaceCollectionTag
-
addTag
- Specified by:
addTagin interfaceCollectionTag
-
remove
- Specified by:
removein interfaceCollectionTag
-
clear
public void clear()- Specified by:
clearin interfaceCollectionTag
-
asByteArray
- Specified by:
asByteArrayin interfaceTag
-
accept
-