Package net.minecraft.nbt
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 int
static final TagType
<ByteArrayTag> Fields inherited from interface net.minecraft.nbt.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
Modifier and TypeMethodDescriptionaccept
(StreamTagVisitor p_197429_) void
accept
(TagVisitor p_177839_) boolean
Optional
<byte[]> void
clear()
copy()
boolean
get
(int p_128194_) byte[]
byte
getId()
getType()
int
hashCode()
remove
(int p_128213_) boolean
int
size()
int
toString()
void
write
(DataOutput p_128202_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.nbt.CollectionTag
isEmpty, iterator, stream
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface net.minecraft.nbt.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[] p_128191_)
-
-
Method Details
-
write
- Specified by:
write
in interfaceTag
- Throws:
IOException
-
sizeInBytes
public int sizeInBytes()- Specified by:
sizeInBytes
in interfaceTag
-
getId
public byte getId() -
getType
-
toString
-
copy
-
equals
-
hashCode
public int hashCode() -
accept
-
getAsByteArray
public byte[] getAsByteArray() -
size
public int size()- Specified by:
size
in interfaceCollectionTag
-
get
- Specified by:
get
in interfaceCollectionTag
-
setTag
- Specified by:
setTag
in interfaceCollectionTag
-
addTag
- Specified by:
addTag
in interfaceCollectionTag
-
remove
- Specified by:
remove
in interfaceCollectionTag
-
clear
public void clear()- Specified by:
clear
in interfaceCollectionTag
-
asByteArray
- Specified by:
asByteArray
in interfaceTag
-
accept
-