Package net.minecraft.nbt
Class ByteArrayNBT
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- net.minecraft.nbt.CollectionNBT<ByteNBT>
-
- net.minecraft.nbt.ByteArrayNBT
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
data
static INBTType<ByteArrayNBT>
TYPE
-
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
-
Constructor Summary
Constructors Constructor Description ByteArrayNBT(byte[] p_i45128_1_)
ByteArrayNBT(java.util.List<java.lang.Byte> p_i47529_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int p_add_1_, ByteNBT p_add_2_)
boolean
addTag(int p_218660_1_, INBT p_218660_2_)
void
clear()
INBT
copy()
boolean
equals(java.lang.Object p_equals_1_)
ByteNBT
get(int p_get_1_)
byte[]
getAsByteArray()
byte
getElementType()
byte
getId()
ITextComponent
getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
INBTType<ByteArrayNBT>
getType()
int
hashCode()
ByteNBT
remove(int p_remove_1_)
ByteNBT
set(int p_set_1_, ByteNBT p_set_2_)
boolean
setTag(int p_218659_1_, INBT p_218659_2_)
int
size()
private static byte[]
toArray(java.util.List<java.lang.Byte> p_193589_0_)
java.lang.String
toString()
void
write(java.io.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 net.minecraft.nbt.INBT
getAsString, getPrettyDisplay
-
-
-
-
Field Detail
-
TYPE
public static final INBTType<ByteArrayNBT> TYPE
-
data
private byte[] data
-
-
Method Detail
-
toArray
private static byte[] toArray(java.util.List<java.lang.Byte> p_193589_0_)
-
write
public void write(java.io.DataOutput p_74734_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
getId
public byte getId()
-
getType
public INBTType<ByteArrayNBT> getType()
-
toString
public java.lang.String toString()
-
copy
public INBT copy()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
-
hashCode
public int hashCode()
-
getPrettyDisplay
public ITextComponent getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
-
getAsByteArray
public byte[] getAsByteArray()
-
size
public int size()
-
get
public ByteNBT get(int p_get_1_)
-
set
public ByteNBT set(int p_set_1_, ByteNBT p_set_2_)
- Specified by:
set
in interfacejava.util.List<ByteNBT>
- Specified by:
set
in classCollectionNBT<ByteNBT>
-
add
public void add(int p_add_1_, ByteNBT p_add_2_)
- Specified by:
add
in interfacejava.util.List<ByteNBT>
- Specified by:
add
in classCollectionNBT<ByteNBT>
-
setTag
public boolean setTag(int p_218659_1_, INBT p_218659_2_)
- Specified by:
setTag
in classCollectionNBT<ByteNBT>
-
addTag
public boolean addTag(int p_218660_1_, INBT p_218660_2_)
- Specified by:
addTag
in classCollectionNBT<ByteNBT>
-
remove
public ByteNBT remove(int p_remove_1_)
- Specified by:
remove
in interfacejava.util.List<ByteNBT>
- Specified by:
remove
in classCollectionNBT<ByteNBT>
-
getElementType
public byte getElementType()
- Specified by:
getElementType
in classCollectionNBT<ByteNBT>
-
-