Package net.minecraft.nbt
Class NbtIntArray
- All Implemented Interfaces:
Iterable<NbtInt>,Collection<NbtInt>,List<NbtInt>,NbtElement
Represents an NBT 32-bit integer array.
- Mappings:
Namespace Name official neintermediary net/minecraft/class_2495named net/minecraft/nbt/NbtIntArray
-
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
Constructors -
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.int[]Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.inthashCode()remove(int int2)booleansetElement(int index, NbtElement element)intsize()private static int[]toString()voidwrite(DataOutput output)Methods 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_33195
private static final int field_33195- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official bLne;b:Iintermediary field_33195Lnet/minecraft/class_2495;field_33195:Inamed field_33195Lnet/minecraft/nbt/NbtIntArray;field_33195:I
-
TYPE
- Mappings:
Namespace Name Mixin selector official aLne;a:Lnu;intermediary field_21036Lnet/minecraft/class_2495;field_21036:Lnet/minecraft/class_4614;named TYPELnet/minecraft/nbt/NbtIntArray;TYPE:Lnet/minecraft/nbt/NbtType;
-
value
private int[] value- Mappings:
Namespace Name Mixin selector official cLne;c:[Iintermediary field_11524Lnet/minecraft/class_2495;field_11524:[Inamed valueLnet/minecraft/nbt/NbtIntArray;value:[I
-
-
Constructor Details
-
NbtIntArray
public NbtIntArray(int[] value)- Mappings:
Namespace Name Mixin selector official <init>Lne;<init>([I)Vintermediary <init>Lnet/minecraft/class_2495;<init>([I)Vnamed <init>Lnet/minecraft/nbt/NbtIntArray;<init>([I)V
-
NbtIntArray
- Mappings:
Namespace Name Mixin selector official <init>Lne;<init>(Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_2495;<init>(Ljava/util/List;)Vnamed <init>Lnet/minecraft/nbt/NbtIntArray;<init>(Ljava/util/List;)V
-
-
Method Details
-
toArray
- Mappings:
Namespace Name Mixin selector official aLne;a(Ljava/util/List;)[Iintermediary method_10590Lnet/minecraft/class_2495;method_10590(Ljava/util/List;)[Inamed toArrayLnet/minecraft/nbt/NbtIntArray;toArray(Ljava/util/List;)[I
-
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<NbtInt>
-
copy
Description copied from interface:NbtElementCopies this NBT element.- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official dLne;d()Lne;intermediary method_10591Lnet/minecraft/class_2495;method_10591()Lnet/minecraft/class_2495;named copyLnet/minecraft/nbt/NbtIntArray;copy()Lnet/minecraft/nbt/NbtIntArray;
-
equals
- Specified by:
equalsin interfaceCollection<NbtInt>- Specified by:
equalsin interfaceList<NbtInt>- Overrides:
equalsin classAbstractList<NbtInt>- Mappings:
Namespace Name Mixin selector official equalsLne;equals(Ljava/lang/Object;)Zintermediary equalsLnet/minecraft/class_2495;equals(Ljava/lang/Object;)Znamed equalsLnet/minecraft/nbt/NbtIntArray;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<NbtInt>- Specified by:
hashCodein interfaceList<NbtInt>- Overrides:
hashCodein classAbstractList<NbtInt>
-
getIntArray
public int[] getIntArray()- Mappings:
Namespace Name Mixin selector official fLne;f()[Iintermediary method_10588Lnet/minecraft/class_2495;method_10588()[Inamed getIntArrayLnet/minecraft/nbt/NbtIntArray;getIntArray()[I
-
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
-
size
public int size()- Specified by:
sizein interfaceCollection<NbtInt>- Specified by:
sizein interfaceList<NbtInt>- Specified by:
sizein classAbstractCollection<NbtInt>
-
get
- Specified by:
getin interfaceList<NbtInt>- Specified by:
getin classAbstractList<NbtInt>- Mappings:
Namespace Name Mixin selector official aLne;a(I)Lnf;intermediary method_10589Lnet/minecraft/class_2495;method_10589(I)Lnet/minecraft/class_2497;named getLnet/minecraft/nbt/NbtIntArray;get(I)Lnet/minecraft/nbt/NbtInt;
-
set
- Specified by:
setin interfaceList<NbtInt>- Specified by:
setin classAbstractNbtList<NbtInt>- Mappings:
Namespace Name Mixin selector official aLne;a(ILnf;)Lnf;intermediary method_17806Lnet/minecraft/class_2495;method_17806(ILnet/minecraft/class_2497;)Lnet/minecraft/class_2497;named setLnet/minecraft/nbt/NbtIntArray;set(ILnet/minecraft/nbt/NbtInt;)Lnet/minecraft/nbt/NbtInt;
-
add
- Specified by:
addin interfaceList<NbtInt>- Specified by:
addin classAbstractNbtList<NbtInt>- Mappings:
Namespace Name Mixin selector official bLne;b(ILnf;)Vintermediary method_17808Lnet/minecraft/class_2495;method_17808(ILnet/minecraft/class_2497;)Vnamed addLnet/minecraft/nbt/NbtIntArray;add(ILnet/minecraft/nbt/NbtInt;)V
-
setElement
- Specified by:
setElementin classAbstractNbtList<NbtInt>- 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<NbtInt>- 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<NbtInt>- Specified by:
removein classAbstractNbtList<NbtInt>- Mappings:
Namespace Name Mixin selector official bLne;b(I)Lnf;intermediary method_17807Lnet/minecraft/class_2495;method_17807(I)Lnet/minecraft/class_2497;named removeLnet/minecraft/nbt/NbtIntArray;remove(I)Lnet/minecraft/nbt/NbtInt;
-
getHeldType
public byte getHeldType()Gets the type of element that this list holds.- Specified by:
getHeldTypein classAbstractNbtList<NbtInt>- 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<NbtInt>- Specified by:
clearin interfaceList<NbtInt>- Overrides:
clearin classAbstractList<NbtInt>
-