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[]datastatic 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 voidadd(int p_add_1_, ByteNBT p_add_2_)booleanaddTag(int p_218660_1_, INBT p_218660_2_)voidclear()INBTcopy()booleanequals(java.lang.Object p_equals_1_)ByteNBTget(int p_get_1_)byte[]getAsByteArray()bytegetElementType()bytegetId()ITextComponentgetPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)INBTType<ByteArrayNBT>getType()inthashCode()ByteNBTremove(int p_remove_1_)ByteNBTset(int p_set_1_, ByteNBT p_set_2_)booleansetTag(int p_218659_1_, INBT p_218659_2_)intsize()private static byte[]toArray(java.util.List<java.lang.Byte> p_193589_0_)java.lang.StringtoString()voidwrite(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:
setin interfacejava.util.List<ByteNBT>- Specified by:
setin classCollectionNBT<ByteNBT>
-
add
public void add(int p_add_1_, ByteNBT p_add_2_)- Specified by:
addin interfacejava.util.List<ByteNBT>- Specified by:
addin classCollectionNBT<ByteNBT>
-
setTag
public boolean setTag(int p_218659_1_, INBT p_218659_2_)- Specified by:
setTagin classCollectionNBT<ByteNBT>
-
addTag
public boolean addTag(int p_218660_1_, INBT p_218660_2_)- Specified by:
addTagin classCollectionNBT<ByteNBT>
-
remove
public ByteNBT remove(int p_remove_1_)
- Specified by:
removein interfacejava.util.List<ByteNBT>- Specified by:
removein classCollectionNBT<ByteNBT>
-
getElementType
public byte getElementType()
- Specified by:
getElementTypein classCollectionNBT<ByteNBT>
-
-