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 nhintermediary net/minecraft/class_2501named net/minecraft/nbt/NbtLongArray
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCountFields 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
ConstructorsConstructorDescriptionNbtLongArray(long[] value)NbtLongArray(LongSet value)NbtLongArray(List<Long> value) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(NbtElementVisitor visitor)voidbooleanaddElement(int index, NbtElement element)voidclear()copy()Copies this NBT element.booleanget(int int2)byteGets the type of element that this list holds.long[]Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.inthashCode()method_10606(int int2, NbtLong nbtLong)remove(int int2)booleansetElement(int index, NbtElement element)intsize()private static long[]toString()voidwrite(DataOutput output)Methods inherited from class net.minecraft.nbt.AbstractNbtList
setMethods 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
-
field_33200
private static final int field_33200- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official bLnh;b:Iintermediary field_33200Lnet/minecraft/class_2501;field_33200:Inamed field_33200Lnet/minecraft/nbt/NbtLongArray;field_33200:I
-
TYPE
- Mappings:
Namespace Name Mixin selector official aLnh;a:Lnu;intermediary field_21040Lnet/minecraft/class_2501;field_21040:Lnet/minecraft/class_4614;named TYPELnet/minecraft/nbt/NbtLongArray;TYPE:Lnet/minecraft/nbt/NbtType;
-
value
private long[] value- Mappings:
Namespace Name Mixin selector official cLnh;c:[Jintermediary field_11552Lnet/minecraft/class_2501;field_11552:[Jnamed valueLnet/minecraft/nbt/NbtLongArray;value:[J
-
-
Constructor Details
-
NbtLongArray
public NbtLongArray(long[] value)- Mappings:
Namespace Name Mixin selector official <init>Lnh;<init>([J)Vintermediary <init>Lnet/minecraft/class_2501;<init>([J)Vnamed <init>Lnet/minecraft/nbt/NbtLongArray;<init>([J)V
-
NbtLongArray
- Mappings:
Namespace Name Mixin selector official <init>Lnh;<init>(Lit/unimi/dsi/fastutil/longs/LongSet;)Vintermediary <init>Lnet/minecraft/class_2501;<init>(Lit/unimi/dsi/fastutil/longs/LongSet;)Vnamed <init>Lnet/minecraft/nbt/NbtLongArray;<init>(Lit/unimi/dsi/fastutil/longs/LongSet;)V
-
NbtLongArray
- Mappings:
Namespace Name Mixin selector official <init>Lnh;<init>(Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_2501;<init>(Ljava/util/List;)Vnamed <init>Lnet/minecraft/nbt/NbtLongArray;<init>(Ljava/util/List;)V
-
-
Method Details
-
toArray
- Mappings:
Namespace Name Mixin selector official aLnh;a(Ljava/util/List;)[Jintermediary method_10617Lnet/minecraft/class_2501;method_10617(Ljava/util/List;)[Jnamed toArrayLnet/minecraft/nbt/NbtLongArray;toArray(Ljava/util/List;)[J
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLns;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
- Mappings:
Namespace Name Mixin selector official aLns;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 bLns;b()Lnu;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<NbtLong>
-
copy
Description copied from interface:NbtElementCopies this NBT element.- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official dLnh;d()Lnh;intermediary method_10618Lnet/minecraft/class_2501;method_10618()Lnet/minecraft/class_2501;named copyLnet/minecraft/nbt/NbtLongArray;copy()Lnet/minecraft/nbt/NbtLongArray;
-
equals
- Specified by:
equalsin interfaceCollection<NbtLong>- Specified by:
equalsin interfaceList<NbtLong>- Overrides:
equalsin classAbstractList<NbtLong>- Mappings:
Namespace Name Mixin selector official equalsLnh;equals(Ljava/lang/Object;)Zintermediary equalsLnet/minecraft/class_2501;equals(Ljava/lang/Object;)Znamed equalsLnet/minecraft/nbt/NbtLongArray;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<NbtLong>- Specified by:
hashCodein interfaceList<NbtLong>- Overrides:
hashCodein classAbstractList<NbtLong>
-
accept
- Mappings:
Namespace Name Mixin selector official aLns;a(Lnw;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vnamed acceptLnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-
getLongArray
public long[] getLongArray()- Mappings:
Namespace Name Mixin selector official fLnh;f()[Jintermediary method_10615Lnet/minecraft/class_2501;method_10615()[Jnamed getLongArrayLnet/minecraft/nbt/NbtLongArray;getLongArray()[J
-
size
public int size()- Specified by:
sizein interfaceCollection<NbtLong>- Specified by:
sizein interfaceList<NbtLong>- Specified by:
sizein classAbstractCollection<NbtLong>
-
get
- Specified by:
getin interfaceList<NbtLong>- Specified by:
getin classAbstractList<NbtLong>- Mappings:
Namespace Name Mixin selector official aLnh;a(I)Lni;intermediary method_10616Lnet/minecraft/class_2501;method_10616(I)Lnet/minecraft/class_2503;named getLnet/minecraft/nbt/NbtLongArray;get(I)Lnet/minecraft/nbt/NbtLong;
-
method_10606
- Mappings:
Namespace Name Mixin selector official aLnh;a(ILni;)Lni;intermediary method_17810Lnet/minecraft/class_2501;method_17810(ILnet/minecraft/class_2503;)Lnet/minecraft/class_2503;named method_10606Lnet/minecraft/nbt/NbtLongArray;method_10606(ILnet/minecraft/nbt/NbtLong;)Lnet/minecraft/nbt/NbtLong;
-
add
- Specified by:
addin interfaceList<NbtLong>- Specified by:
addin classAbstractNbtList<NbtLong>- Mappings:
Namespace Name Mixin selector official bLnh;b(ILni;)Vintermediary method_17812Lnet/minecraft/class_2501;method_17812(ILnet/minecraft/class_2503;)Vnamed addLnet/minecraft/nbt/NbtLongArray;add(ILnet/minecraft/nbt/NbtLong;)V
-
setElement
- Specified by:
setElementin classAbstractNbtList<NbtLong>- Mappings:
Namespace Name Mixin selector official aLmz;a(ILns;)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<NbtLong>- Mappings:
Namespace Name Mixin selector official bLmz;b(ILns;)Zintermediary method_10533Lnet/minecraft/class_2483;method_10533(ILnet/minecraft/class_2520;)Znamed addElementLnet/minecraft/nbt/AbstractNbtList;addElement(ILnet/minecraft/nbt/NbtElement;)Z
-
remove
- Specified by:
removein interfaceList<NbtLong>- Specified by:
removein classAbstractNbtList<NbtLong>- Mappings:
Namespace Name Mixin selector official bLnh;b(I)Lni;intermediary method_17811Lnet/minecraft/class_2501;method_17811(I)Lnet/minecraft/class_2503;named removeLnet/minecraft/nbt/NbtLongArray;remove(I)Lnet/minecraft/nbt/NbtLong;
-
getHeldType
public byte getHeldType()Gets the type of element that this list holds.- Specified by:
getHeldTypein classAbstractNbtList<NbtLong>- Returns:
- the type of element that this list holds
- Mappings:
Namespace Name Mixin selector official eLmz;e()Bintermediary method_10601Lnet/minecraft/class_2483;method_10601()Bnamed getHeldTypeLnet/minecraft/nbt/AbstractNbtList;getHeldType()B
-
clear
public void clear()- Specified by:
clearin interfaceCollection<NbtLong>- Specified by:
clearin interfaceList<NbtLong>- Overrides:
clearin classAbstractList<NbtLong>
-