Package net.minecraft.nbt
Class NbtByteArray
- All Implemented Interfaces:
Iterable<NbtByte>
,Collection<NbtByte>
,List<NbtByte>
,NbtElement
Represents an NBT byte array.
- Mappings:
Namespace Name official ny
intermediary net/minecraft/class_2479
named net/minecraft/nbt/NbtByteArray
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final NbtType<NbtByteArray>
private byte[]
Fields inherited from class java.util.AbstractList
modCount
Fields inherited from interface net.minecraft.nbt.NbtElement
BYTE_ARRAY_TYPE, BYTE_TYPE, COMPOUND_TYPE, DOUBLE_TYPE, field_33246, field_33247, field_33248, field_33249, field_33264, FLOAT_TYPE, INT_ARRAY_TYPE, INT_TYPE, LIST_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, NULL_TYPE, NUMBER_TYPE, SHORT_TYPE, STRING_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(NbtElementVisitor visitor) boolean
addElement
(int index, NbtElement element) void
clear()
copy()
Copies this NBT element.boolean
get
(int int2) byte[]
byte
Gets the type of element that this list holds.Gets the NBT type definition of this NBT element.byte
getType()
Gets the type of this NBT element.int
hashCode()
void
method_10531
(int int2, NbtByte nbtByte) method_10536
(int int2) boolean
setElement
(int index, NbtElement element) int
size()
private static byte[]
toString()
void
write
(DataOutput output) Methods inherited from class net.minecraft.nbt.AbstractNbtList
add, remove
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 java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
Methods inherited from interface net.minecraft.nbt.NbtElement
asString
-
Field Details
-
field_33188
private static final int field_33188- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lny;b:I
intermediary field_33188
Lnet/minecraft/class_2479;field_33188:I
named field_33188
Lnet/minecraft/nbt/NbtByteArray;field_33188:I
-
TYPE
- Mappings:
Namespace Name Mixin selector official a
Lny;a:Lov;
intermediary field_21024
Lnet/minecraft/class_2479;field_21024:Lnet/minecraft/class_4614;
named TYPE
Lnet/minecraft/nbt/NbtByteArray;TYPE:Lnet/minecraft/nbt/NbtType;
-
value
private byte[] value- Mappings:
Namespace Name Mixin selector official c
Lny;c:[B
intermediary field_11493
Lnet/minecraft/class_2479;field_11493:[B
named value
Lnet/minecraft/nbt/NbtByteArray;value:[B
-
-
Constructor Details
-
NbtByteArray
public NbtByteArray(byte[] value) - Mappings:
Namespace Name Mixin selector official <init>
Lny;<init>([B)V
intermediary <init>
Lnet/minecraft/class_2479;<init>([B)V
named <init>
Lnet/minecraft/nbt/NbtByteArray;<init>([B)V
-
NbtByteArray
- Mappings:
Namespace Name Mixin selector official <init>
Lny;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_2479;<init>(Ljava/util/List;)V
named <init>
Lnet/minecraft/nbt/NbtByteArray;<init>(Ljava/util/List;)V
-
-
Method Details
-
toArray
- Mappings:
Namespace Name Mixin selector official a
Lny;a(Ljava/util/List;)[B
intermediary method_10522
Lnet/minecraft/class_2479;method_10522(Ljava/util/List;)[B
named toArray
Lnet/minecraft/nbt/NbtByteArray;toArray(Ljava/util/List;)[B
-
write
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lot;a(Ljava/io/DataOutput;)V
intermediary method_10713
Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)V
named write
Lnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
-
getType
public byte getType()Gets the type of this NBT element.- Returns:
- the type
- Mappings:
Namespace Name Mixin selector official a
Lot;a()B
intermediary method_10711
Lnet/minecraft/class_2520;method_10711()B
named getType
Lnet/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 b
Lot;b()Lov;
intermediary method_23258
Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
named getNbtType
Lnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;
-
toString
- Specified by:
toString
in interfaceNbtElement
- Overrides:
toString
in classAbstractCollection<NbtByte>
-
copy
Copies this NBT element.- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official c
Lot;c()Lot;
intermediary method_10707
Lnet/minecraft/class_2520;method_10707()Lnet/minecraft/class_2520;
named copy
Lnet/minecraft/nbt/NbtElement;copy()Lnet/minecraft/nbt/NbtElement;
-
equals
- Specified by:
equals
in interfaceCollection<NbtByte>
- Specified by:
equals
in interfaceList<NbtByte>
- Overrides:
equals
in classAbstractList<NbtByte>
- Mappings:
Namespace Name Mixin selector official equals
Lny;equals(Ljava/lang/Object;)Z
intermediary equals
Lnet/minecraft/class_2479;equals(Ljava/lang/Object;)Z
named equals
Lnet/minecraft/nbt/NbtByteArray;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<NbtByte>
- Specified by:
hashCode
in interfaceList<NbtByte>
- Overrides:
hashCode
in classAbstractList<NbtByte>
-
accept
- Mappings:
Namespace Name Mixin selector official a
Lot;a(Lox;)V
intermediary method_32289
Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)V
named accept
Lnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-
getByteArray
public byte[] getByteArray()- Mappings:
Namespace Name Mixin selector official d
Lny;d()[B
intermediary method_10521
Lnet/minecraft/class_2479;method_10521()[B
named getByteArray
Lnet/minecraft/nbt/NbtByteArray;getByteArray()[B
-
size
public int size()- Specified by:
size
in interfaceCollection<NbtByte>
- Specified by:
size
in interfaceList<NbtByte>
- Specified by:
size
in classAbstractCollection<NbtByte>
-
get
- Specified by:
get
in interfaceList<NbtByte>
- Specified by:
get
in classAbstractList<NbtByte>
- Mappings:
Namespace Name Mixin selector official a
Lny;a(I)Lnz;
intermediary method_10523
Lnet/minecraft/class_2479;method_10523(I)Lnet/minecraft/class_2481;
named get
Lnet/minecraft/nbt/NbtByteArray;get(I)Lnet/minecraft/nbt/NbtByte;
-
set
- Specified by:
set
in interfaceList<NbtByte>
- Specified by:
set
in classAbstractNbtList<NbtByte>
- Mappings:
Namespace Name Mixin selector official a
Lny;a(ILnz;)Lnz;
intermediary method_17803
Lnet/minecraft/class_2479;method_17803(ILnet/minecraft/class_2481;)Lnet/minecraft/class_2481;
named set
Lnet/minecraft/nbt/NbtByteArray;set(ILnet/minecraft/nbt/NbtByte;)Lnet/minecraft/nbt/NbtByte;
-
method_10531
- Mappings:
Namespace Name Mixin selector official b
Lny;b(ILnz;)V
intermediary method_17805
Lnet/minecraft/class_2479;method_17805(ILnet/minecraft/class_2481;)V
named method_10531
Lnet/minecraft/nbt/NbtByteArray;method_10531(ILnet/minecraft/nbt/NbtByte;)V
-
setElement
- Specified by:
setElement
in classAbstractNbtList<NbtByte>
- Mappings:
Namespace Name Mixin selector official a
Loa;a(ILot;)Z
intermediary method_10535
Lnet/minecraft/class_2483;method_10535(ILnet/minecraft/class_2520;)Z
named setElement
Lnet/minecraft/nbt/AbstractNbtList;setElement(ILnet/minecraft/nbt/NbtElement;)Z
-
addElement
- Specified by:
addElement
in classAbstractNbtList<NbtByte>
- Mappings:
Namespace Name Mixin selector official b
Loa;b(ILot;)Z
intermediary method_10533
Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Z
named addElement
Lnet/minecraft/nbt/AbstractNbtList;addElement(ILnet/minecraft/nbt/NbtElement;)Z
-
method_10536
- Mappings:
Namespace Name Mixin selector official b
Lny;b(I)Lnz;
intermediary method_17804
Lnet/minecraft/class_2479;method_17804(I)Lnet/minecraft/class_2481;
named method_10536
Lnet/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:
getHeldType
in classAbstractNbtList<NbtByte>
- Returns:
- the type of element that this list holds
- Mappings:
Namespace Name Mixin selector official e
Loa;e()B
intermediary method_10601
Lnet/minecraft/class_2483;method_10601()B
named getHeldType
Lnet/minecraft/nbt/AbstractNbtList;getHeldType()B
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<NbtByte>
- Specified by:
clear
in interfaceList<NbtByte>
- Overrides:
clear
in classAbstractList<NbtByte>
-