Package net.minecraft.nbt
Class NbtLongArray
- All Implemented Interfaces:
Iterable<NbtLong>
,Collection<NbtLong>
,List<NbtLong>
,NbtElement
Represents an NBT 64-bit integer array.
- Mappings:
Namespace Name official oi
intermediary net/minecraft/class_2501
named net/minecraft/nbt/NbtLongArray
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final NbtType<NbtLongArray>
private long[]
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
ConstructorDescriptionNbtLongArray
(long[] value) NbtLongArray
(LongSet value) NbtLongArray
(List<Long> value) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(NbtElementVisitor visitor) void
boolean
addElement
(int index, NbtElement element) void
clear()
copy()
Copies this NBT element.boolean
get
(int int2) byte
Gets the type of element that this list holds.long[]
Gets the NBT type definition of this NBT element.byte
getType()
Gets the type of this NBT element.int
hashCode()
method_10606
(int int2, NbtLong nbtLong) remove
(int int2) boolean
setElement
(int index, NbtElement element) int
size()
private static long[]
toString()
void
write
(DataOutput output) Methods inherited from class net.minecraft.nbt.AbstractNbtList
set
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_33200
private static final int field_33200- See Also:
- Mappings:
Namespace Name Mixin selector official b
Loi;b:I
intermediary field_33200
Lnet/minecraft/class_2501;field_33200:I
named field_33200
Lnet/minecraft/nbt/NbtLongArray;field_33200:I
-
TYPE
- Mappings:
Namespace Name Mixin selector official a
Loi;a:Lov;
intermediary field_21040
Lnet/minecraft/class_2501;field_21040:Lnet/minecraft/class_4614;
named TYPE
Lnet/minecraft/nbt/NbtLongArray;TYPE:Lnet/minecraft/nbt/NbtType;
-
value
private long[] value- Mappings:
Namespace Name Mixin selector official c
Loi;c:[J
intermediary field_11552
Lnet/minecraft/class_2501;field_11552:[J
named value
Lnet/minecraft/nbt/NbtLongArray;value:[J
-
-
Constructor Details
-
NbtLongArray
public NbtLongArray(long[] value) - Mappings:
Namespace Name Mixin selector official <init>
Loi;<init>([J)V
intermediary <init>
Lnet/minecraft/class_2501;<init>([J)V
named <init>
Lnet/minecraft/nbt/NbtLongArray;<init>([J)V
-
NbtLongArray
- Mappings:
Namespace Name Mixin selector official <init>
Loi;<init>(Lit/unimi/dsi/fastutil/longs/LongSet;)V
intermediary <init>
Lnet/minecraft/class_2501;<init>(Lit/unimi/dsi/fastutil/longs/LongSet;)V
named <init>
Lnet/minecraft/nbt/NbtLongArray;<init>(Lit/unimi/dsi/fastutil/longs/LongSet;)V
-
NbtLongArray
- Mappings:
Namespace Name Mixin selector official <init>
Loi;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_2501;<init>(Ljava/util/List;)V
named <init>
Lnet/minecraft/nbt/NbtLongArray;<init>(Ljava/util/List;)V
-
-
Method Details
-
toArray
- Mappings:
Namespace Name Mixin selector official a
Loi;a(Ljava/util/List;)[J
intermediary method_10617
Lnet/minecraft/class_2501;method_10617(Ljava/util/List;)[J
named toArray
Lnet/minecraft/nbt/NbtLongArray;toArray(Ljava/util/List;)[J
-
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<NbtLong>
-
copy
Description copied from interface:NbtElement
Copies this NBT element.- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official d
Loi;d()Loi;
intermediary method_10618
Lnet/minecraft/class_2501;method_10618()Lnet/minecraft/class_2501;
named copy
Lnet/minecraft/nbt/NbtLongArray;copy()Lnet/minecraft/nbt/NbtLongArray;
-
equals
- Specified by:
equals
in interfaceCollection<NbtLong>
- Specified by:
equals
in interfaceList<NbtLong>
- Overrides:
equals
in classAbstractList<NbtLong>
- Mappings:
Namespace Name Mixin selector official equals
Loi;equals(Ljava/lang/Object;)Z
intermediary equals
Lnet/minecraft/class_2501;equals(Ljava/lang/Object;)Z
named equals
Lnet/minecraft/nbt/NbtLongArray;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<NbtLong>
- Specified by:
hashCode
in interfaceList<NbtLong>
- Overrides:
hashCode
in classAbstractList<NbtLong>
-
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
-
getLongArray
public long[] getLongArray()- Mappings:
Namespace Name Mixin selector official f
Loi;f()[J
intermediary method_10615
Lnet/minecraft/class_2501;method_10615()[J
named getLongArray
Lnet/minecraft/nbt/NbtLongArray;getLongArray()[J
-
size
public int size()- Specified by:
size
in interfaceCollection<NbtLong>
- Specified by:
size
in interfaceList<NbtLong>
- Specified by:
size
in classAbstractCollection<NbtLong>
-
get
- Specified by:
get
in interfaceList<NbtLong>
- Specified by:
get
in classAbstractList<NbtLong>
- Mappings:
Namespace Name Mixin selector official a
Loi;a(I)Loj;
intermediary method_10616
Lnet/minecraft/class_2501;method_10616(I)Lnet/minecraft/class_2503;
named get
Lnet/minecraft/nbt/NbtLongArray;get(I)Lnet/minecraft/nbt/NbtLong;
-
method_10606
- Mappings:
Namespace Name Mixin selector official a
Loi;a(ILoj;)Loj;
intermediary method_17810
Lnet/minecraft/class_2501;method_17810(ILnet/minecraft/class_2503;)Lnet/minecraft/class_2503;
named method_10606
Lnet/minecraft/nbt/NbtLongArray;method_10606(ILnet/minecraft/nbt/NbtLong;)Lnet/minecraft/nbt/NbtLong;
-
add
- Specified by:
add
in interfaceList<NbtLong>
- Specified by:
add
in classAbstractNbtList<NbtLong>
- Mappings:
Namespace Name Mixin selector official b
Loi;b(ILoj;)V
intermediary method_17812
Lnet/minecraft/class_2501;method_17812(ILnet/minecraft/class_2503;)V
named add
Lnet/minecraft/nbt/NbtLongArray;add(ILnet/minecraft/nbt/NbtLong;)V
-
setElement
- Specified by:
setElement
in classAbstractNbtList<NbtLong>
- 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<NbtLong>
- 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
-
remove
- Specified by:
remove
in interfaceList<NbtLong>
- Specified by:
remove
in classAbstractNbtList<NbtLong>
- Mappings:
Namespace Name Mixin selector official b
Loi;b(I)Loj;
intermediary method_17811
Lnet/minecraft/class_2501;method_17811(I)Lnet/minecraft/class_2503;
named remove
Lnet/minecraft/nbt/NbtLongArray;remove(I)Lnet/minecraft/nbt/NbtLong;
-
getHeldType
public byte getHeldType()Gets the type of element that this list holds.- Specified by:
getHeldType
in classAbstractNbtList<NbtLong>
- 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<NbtLong>
- Specified by:
clear
in interfaceList<NbtLong>
- Overrides:
clear
in classAbstractList<NbtLong>
-