Package net.minecraft.nbt
Class NbtByteArray
- All Implemented Interfaces:
Iterable<NbtByte>,Collection<NbtByte>,List<NbtByte>,NbtElement
public class NbtByteArray extends AbstractNbtList<NbtByte>
Represents an NBT byte array.
- Mappings:
Namespace Name official mointermediary net/minecraft/class_2479named net/minecraft/nbt/NbtByteArray
-
Field Summary
Fields Modifier and Type Field Description static NbtType<NbtByteArray>TYPEprivate byte[]valueFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors Constructor Description NbtByteArray(byte[] value)NbtByteArray(List<Byte> value) -
Method Summary
Modifier and Type Method Description voidaccept(NbtElementVisitor visitor)booleanaddElement(int index, NbtElement element)voidclear()NbtElementcopy()Copies this NBT element.booleanequals(Object o)NbtByteget(int int2)byte[]getByteArray()bytegetHeldType()Gets the type of element that this list holds.NbtType<NbtByteArray>getNbtType()Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.inthashCode()voidmethod_10531(int int2, NbtByte nbtByte)NbtBytemethod_10536(int int2)NbtByteset(int int2, NbtByte nbtByte)booleansetElement(int index, NbtElement element)intsize()private static byte[]toArray(List<Byte> list)StringtoString()voidwrite(DataOutput output)Methods inherited from class net.minecraft.nbt.AbstractNbtList
add, removeMethods inherited from class java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayMethods inherited from interface net.minecraft.nbt.NbtElement
asString
-
Field Details
-
TYPE
- Mappings:
Namespace Name Mixin selector official aLmo;a:Lnl;intermediary field_21024Lnet/minecraft/class_2479;field_21024:Lnet/minecraft/class_4614;named TYPELnet/minecraft/nbt/NbtByteArray;TYPE:Lnet/minecraft/nbt/NbtType;
-
value
private byte[] value- Mappings:
Namespace Name Mixin selector official bLmo;b:[Bintermediary field_11493Lnet/minecraft/class_2479;field_11493:[Bnamed valueLnet/minecraft/nbt/NbtByteArray;value:[B
-
-
Constructor Details
-
NbtByteArray
public NbtByteArray(byte[] value)- Mappings:
Namespace Name Mixin selector official <init>Lmo;<init>([B)Vintermediary <init>Lnet/minecraft/class_2479;<init>([B)Vnamed <init>Lnet/minecraft/nbt/NbtByteArray;<init>([B)V
-
NbtByteArray
- Mappings:
Namespace Name Mixin selector official <init>Lmo;<init>(Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_2479;<init>(Ljava/util/List;)Vnamed <init>Lnet/minecraft/nbt/NbtByteArray;<init>(Ljava/util/List;)V
-
-
Method Details
-
toArray
- Mappings:
Namespace Name Mixin selector official aLmo;a(Ljava/util/List;)[Bintermediary method_10522Lnet/minecraft/class_2479;method_10522(Ljava/util/List;)[Bnamed toArrayLnet/minecraft/nbt/NbtByteArray;toArray(Ljava/util/List;)[B
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLnj;a(Ljava/io/DataOutput;)Vintermediary method_10713Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
-
getType
public byte getType()Gets the type of this NBT element.- Returns:
- the type
- See Also:
a list of valid types- Mappings:
Namespace Name Mixin selector official aLnj;a()Bintermediary method_10711Lnet/minecraft/class_2520;method_10711()Bnamed getTypeLnet/minecraft/nbt/NbtElement;getType()B
-
getNbtType
Gets the NBT type definition of this NBT element.- Returns:
- the element type definition
- Mappings:
Namespace Name Mixin selector official bLnj;b()Lnl;intermediary method_23258Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;named getNbtTypeLnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;
-
toString
- Specified by:
toStringin interfaceNbtElement- Overrides:
toStringin classAbstractCollection<NbtByte>- Mappings:
Namespace Name Mixin selector official toStringLnj;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_2520;toString()Ljava/lang/String;named toStringLnet/minecraft/nbt/NbtElement;toString()Ljava/lang/String;
-
copy
Copies this NBT element.- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official cLnj;c()Lnj;intermediary method_10707Lnet/minecraft/class_2520;method_10707()Lnet/minecraft/class_2520;named copyLnet/minecraft/nbt/NbtElement;copy()Lnet/minecraft/nbt/NbtElement;
-
equals
- Specified by:
equalsin interfaceCollection<NbtByte>- Specified by:
equalsin interfaceList<NbtByte>- Overrides:
equalsin classAbstractList<NbtByte>- Mappings:
Namespace Name Mixin selector official equalsLmo;equals(Ljava/lang/Object;)Zintermediary equalsLnet/minecraft/class_2479;equals(Ljava/lang/Object;)Znamed equalsLnet/minecraft/nbt/NbtByteArray;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<NbtByte>- Specified by:
hashCodein interfaceList<NbtByte>- Overrides:
hashCodein classAbstractList<NbtByte>- Mappings:
Namespace Name Mixin selector official hashCodeLmo;hashCode()Iintermediary hashCodeLnet/minecraft/class_2479;hashCode()Inamed hashCodeLnet/minecraft/nbt/NbtByteArray;hashCode()I
-
accept
- Mappings:
Namespace Name Mixin selector official aLnj;a(Lnn;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vnamed acceptLnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-
getByteArray
public byte[] getByteArray()- Mappings:
Namespace Name Mixin selector official dLmo;d()[Bintermediary method_10521Lnet/minecraft/class_2479;method_10521()[Bnamed getByteArrayLnet/minecraft/nbt/NbtByteArray;getByteArray()[B
-
size
public int size()- Specified by:
sizein interfaceCollection<NbtByte>- Specified by:
sizein interfaceList<NbtByte>- Specified by:
sizein classAbstractCollection<NbtByte>- Mappings:
Namespace Name Mixin selector official sizeLmo;size()Iintermediary sizeLnet/minecraft/class_2479;size()Inamed sizeLnet/minecraft/nbt/NbtByteArray;size()I
-
get
- Specified by:
getin interfaceList<NbtByte>- Specified by:
getin classAbstractList<NbtByte>- Mappings:
Namespace Name Mixin selector official aLmo;a(I)Lmp;intermediary method_10523Lnet/minecraft/class_2479;method_10523(I)Lnet/minecraft/class_2481;named getLnet/minecraft/nbt/NbtByteArray;get(I)Lnet/minecraft/nbt/NbtByte;
-
set
- Specified by:
setin interfaceList<NbtByte>- Specified by:
setin classAbstractNbtList<NbtByte>- Mappings:
Namespace Name Mixin selector official aLmo;a(ILmp;)Lmp;intermediary method_17803Lnet/minecraft/class_2479;method_17803(ILnet/minecraft/class_2481;)Lnet/minecraft/class_2481;named setLnet/minecraft/nbt/NbtByteArray;set(ILnet/minecraft/nbt/NbtByte;)Lnet/minecraft/nbt/NbtByte;
-
method_10531
- Mappings:
Namespace Name Mixin selector official bLmo;b(ILmp;)Vintermediary method_17805Lnet/minecraft/class_2479;method_17805(ILnet/minecraft/class_2481;)Vnamed method_10531Lnet/minecraft/nbt/NbtByteArray;method_10531(ILnet/minecraft/nbt/NbtByte;)V
-
setElement
- Specified by:
setElementin classAbstractNbtList<NbtByte>- Mappings:
Namespace Name Mixin selector official aLmq;a(ILnj;)Zintermediary method_10535Lnet/minecraft/class_2483;method_10535(ILnet/minecraft/class_2520;)Znamed setElementLnet/minecraft/nbt/AbstractNbtList;setElement(ILnet/minecraft/nbt/NbtElement;)Z
-
addElement
- Specified by:
addElementin classAbstractNbtList<NbtByte>- Mappings:
Namespace Name Mixin selector official bLmq;b(ILnj;)Zintermediary method_10533Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Znamed addElementLnet/minecraft/nbt/AbstractNbtList;addElement(ILnet/minecraft/nbt/NbtElement;)Z
-
method_10536
- Mappings:
Namespace Name Mixin selector official bLmo;b(I)Lmp;intermediary method_17804Lnet/minecraft/class_2479;method_17804(I)Lnet/minecraft/class_2481;named method_10536Lnet/minecraft/nbt/NbtByteArray;method_10536(I)Lnet/minecraft/nbt/NbtByte;
-
getHeldType
public byte getHeldType()Gets the type of element that this list holds.- Specified by:
getHeldTypein classAbstractNbtList<NbtByte>- Returns:
- the type of element that this list holds
- Mappings:
Namespace Name Mixin selector official d_Lmq;d_()Bintermediary method_10601Lnet/minecraft/class_2483;method_10601()Bnamed getHeldTypeLnet/minecraft/nbt/AbstractNbtList;getHeldType()B
-
clear
public void clear()- Specified by:
clearin interfaceCollection<NbtByte>- Specified by:
clearin interfaceList<NbtByte>- Overrides:
clearin classAbstractList<NbtByte>- Mappings:
Namespace Name Mixin selector official clearLmo;clear()Vintermediary clearLnet/minecraft/class_2479;clear()Vnamed clearLnet/minecraft/nbt/NbtByteArray;clear()V
-