Package net.minecraft.nbt
Class ByteArrayNBT
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
clear()
copy()
boolean
get
(int p_get_1_) byte[]
byte
byte
getId()
getPrettyDisplay
(String p_199850_1_, int p_199850_2_) getType()
int
hashCode()
remove
(int p_remove_1_) boolean
int
size()
private static byte[]
toString()
void
write
(DataOutput p_74734_1_) 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 net.minecraft.nbt.INBT
getAsString, getPrettyDisplay
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
TYPE
-
data
private byte[] data
-
-
Constructor Details
-
ByteArrayNBT
public ByteArrayNBT(byte[] p_i45128_1_) -
ByteArrayNBT
-
-
Method Details
-
toArray
-
write
- Throws:
IOException
-
getId
public byte getId() -
getType
-
toString
- Specified by:
toString
in interfaceINBT
- Overrides:
toString
in classAbstractCollection<ByteNBT>
-
copy
-
equals
- Specified by:
equals
in interfaceCollection<ByteNBT>
- Specified by:
equals
in interfaceList<ByteNBT>
- Overrides:
equals
in classAbstractList<ByteNBT>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<ByteNBT>
- Specified by:
hashCode
in interfaceList<ByteNBT>
- Overrides:
hashCode
in classAbstractList<ByteNBT>
-
getPrettyDisplay
-
getAsByteArray
public byte[] getAsByteArray() -
size
public int size()- Specified by:
size
in interfaceCollection<ByteNBT>
- Specified by:
size
in interfaceList<ByteNBT>
- Specified by:
size
in classAbstractCollection<ByteNBT>
-
get
-
set
-
add
-
setTag
- Specified by:
setTag
in classCollectionNBT<ByteNBT>
-
addTag
- Specified by:
addTag
in classCollectionNBT<ByteNBT>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classCollectionNBT<ByteNBT>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<ByteNBT>
- Specified by:
clear
in interfaceList<ByteNBT>
- Overrides:
clear
in classAbstractList<ByteNBT>
-