Package net.minecraft.nbt
Class ByteArrayTag
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate byte[]private static final intstatic final TagType<ByteArrayTag>Fields inherited from class java.util.AbstractListmodCountFields inherited from interface net.minecraft.nbt.TagARRAY_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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaccept(StreamTagVisitor p_197429_) voidaccept(TagVisitor p_177839_) voidbooleanvoidclear()copy()booleanget(int p_128194_) byte[]bytebytegetId()getType()inthashCode()remove(int p_128213_) booleanintsize()intprivate static byte[]toString()voidwrite(DataOutput p_128202_) Methods inherited from class java.util.AbstractListadd, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollectionaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.ListaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayMethods inherited from interface net.minecraft.nbt.TagacceptAsRoot, getAsString
- 
Field Details- 
SELF_SIZE_IN_BYTESprivate static final int SELF_SIZE_IN_BYTES- See Also:
 
- 
TYPE
- 
dataprivate byte[] data
 
- 
- 
Constructor Details- 
ByteArrayTagpublic ByteArrayTag(byte[] p_128191_) 
- 
ByteArrayTag
 
- 
- 
Method Details- 
toArray
- 
write- Throws:
- IOException
 
- 
sizeInBytespublic int sizeInBytes()
- 
getIdpublic byte getId()
- 
getType
- 
toString- Specified by:
- toStringin interface- Tag
- Overrides:
- toStringin class- AbstractCollection<ByteTag>
 
- 
copy
- 
equals- Specified by:
- equalsin interface- Collection<ByteTag>
- Specified by:
- equalsin interface- List<ByteTag>
- Overrides:
- equalsin class- AbstractList<ByteTag>
 
- 
hashCodepublic int hashCode()- Specified by:
- hashCodein interface- Collection<ByteTag>
- Specified by:
- hashCodein interface- List<ByteTag>
- Overrides:
- hashCodein class- AbstractList<ByteTag>
 
- 
accept
- 
getAsByteArraypublic byte[] getAsByteArray()
- 
sizepublic int size()- Specified by:
- sizein interface- Collection<ByteTag>
- Specified by:
- sizein interface- List<ByteTag>
- Specified by:
- sizein class- AbstractCollection<ByteTag>
 
- 
get
- 
set
- 
add
- 
setTag- Specified by:
- setTagin class- CollectionTag<ByteTag>
 
- 
addTag- Specified by:
- addTagin class- CollectionTag<ByteTag>
 
- 
remove
- 
getElementTypepublic byte getElementType()- Specified by:
- getElementTypein class- CollectionTag<ByteTag>
 
- 
clearpublic void clear()- Specified by:
- clearin interface- Collection<ByteTag>
- Specified by:
- clearin interface- List<ByteTag>
- Overrides:
- clearin class- AbstractList<ByteTag>
 
- 
accept
 
-