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 ne
intermediary net/minecraft/class_2495
named net/minecraft/nbt/NbtIntArray
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final NbtType<NbtIntArray>
private int[]
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) 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.int[]
Gets the NBT type definition of this NBT element.byte
getType()
Gets the type of this NBT element.int
hashCode()
remove
(int int2) boolean
setElement
(int index, NbtElement element) int
size()
private static int[]
toString()
void
write
(DataOutput output) 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_33195
private static final int field_33195- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lne;b:I
intermediary field_33195
Lnet/minecraft/class_2495;field_33195:I
named field_33195
Lnet/minecraft/nbt/NbtIntArray;field_33195:I
-
TYPE
- Mappings:
Namespace Name Mixin selector official a
Lne;a:Lnu;
intermediary field_21036
Lnet/minecraft/class_2495;field_21036:Lnet/minecraft/class_4614;
named TYPE
Lnet/minecraft/nbt/NbtIntArray;TYPE:Lnet/minecraft/nbt/NbtType;
-
value
private int[] value- Mappings:
Namespace Name Mixin selector official c
Lne;c:[I
intermediary field_11524
Lnet/minecraft/class_2495;field_11524:[I
named value
Lnet/minecraft/nbt/NbtIntArray;value:[I
-
-
Constructor Details
-
NbtIntArray
public NbtIntArray(int[] value) - Mappings:
Namespace Name Mixin selector official <init>
Lne;<init>([I)V
intermediary <init>
Lnet/minecraft/class_2495;<init>([I)V
named <init>
Lnet/minecraft/nbt/NbtIntArray;<init>([I)V
-
NbtIntArray
- Mappings:
Namespace Name Mixin selector official <init>
Lne;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_2495;<init>(Ljava/util/List;)V
named <init>
Lnet/minecraft/nbt/NbtIntArray;<init>(Ljava/util/List;)V
-
-
Method Details
-
toArray
- Mappings:
Namespace Name Mixin selector official a
Lne;a(Ljava/util/List;)[I
intermediary method_10590
Lnet/minecraft/class_2495;method_10590(Ljava/util/List;)[I
named toArray
Lnet/minecraft/nbt/NbtIntArray;toArray(Ljava/util/List;)[I
-
write
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lns;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
Lns;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
Lns;b()Lnu;
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<NbtInt>
-
copy
Description copied from interface:NbtElement
Copies this NBT element.- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official d
Lne;d()Lne;
intermediary method_10591
Lnet/minecraft/class_2495;method_10591()Lnet/minecraft/class_2495;
named copy
Lnet/minecraft/nbt/NbtIntArray;copy()Lnet/minecraft/nbt/NbtIntArray;
-
equals
- Specified by:
equals
in interfaceCollection<NbtInt>
- Specified by:
equals
in interfaceList<NbtInt>
- Overrides:
equals
in classAbstractList<NbtInt>
- Mappings:
Namespace Name Mixin selector official equals
Lne;equals(Ljava/lang/Object;)Z
intermediary equals
Lnet/minecraft/class_2495;equals(Ljava/lang/Object;)Z
named equals
Lnet/minecraft/nbt/NbtIntArray;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<NbtInt>
- Specified by:
hashCode
in interfaceList<NbtInt>
- Overrides:
hashCode
in classAbstractList<NbtInt>
-
getIntArray
public int[] getIntArray()- Mappings:
Namespace Name Mixin selector official f
Lne;f()[I
intermediary method_10588
Lnet/minecraft/class_2495;method_10588()[I
named getIntArray
Lnet/minecraft/nbt/NbtIntArray;getIntArray()[I
-
accept
- Mappings:
Namespace Name Mixin selector official a
Lns;a(Lnw;)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
-
size
public int size()- Specified by:
size
in interfaceCollection<NbtInt>
- Specified by:
size
in interfaceList<NbtInt>
- Specified by:
size
in classAbstractCollection<NbtInt>
-
get
- Specified by:
get
in interfaceList<NbtInt>
- Specified by:
get
in classAbstractList<NbtInt>
- Mappings:
Namespace Name Mixin selector official a
Lne;a(I)Lnf;
intermediary method_10589
Lnet/minecraft/class_2495;method_10589(I)Lnet/minecraft/class_2497;
named get
Lnet/minecraft/nbt/NbtIntArray;get(I)Lnet/minecraft/nbt/NbtInt;
-
set
- Specified by:
set
in interfaceList<NbtInt>
- Specified by:
set
in classAbstractNbtList<NbtInt>
- Mappings:
Namespace Name Mixin selector official a
Lne;a(ILnf;)Lnf;
intermediary method_17806
Lnet/minecraft/class_2495;method_17806(ILnet/minecraft/class_2497;)Lnet/minecraft/class_2497;
named set
Lnet/minecraft/nbt/NbtIntArray;set(ILnet/minecraft/nbt/NbtInt;)Lnet/minecraft/nbt/NbtInt;
-
add
- Specified by:
add
in interfaceList<NbtInt>
- Specified by:
add
in classAbstractNbtList<NbtInt>
- Mappings:
Namespace Name Mixin selector official b
Lne;b(ILnf;)V
intermediary method_17808
Lnet/minecraft/class_2495;method_17808(ILnet/minecraft/class_2497;)V
named add
Lnet/minecraft/nbt/NbtIntArray;add(ILnet/minecraft/nbt/NbtInt;)V
-
setElement
- Specified by:
setElement
in classAbstractNbtList<NbtInt>
- Mappings:
Namespace Name Mixin selector official a
Lmz;a(ILns;)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<NbtInt>
- Mappings:
Namespace Name Mixin selector official b
Lmz;b(ILns;)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<NbtInt>
- Specified by:
remove
in classAbstractNbtList<NbtInt>
- Mappings:
Namespace Name Mixin selector official b
Lne;b(I)Lnf;
intermediary method_17807
Lnet/minecraft/class_2495;method_17807(I)Lnet/minecraft/class_2497;
named remove
Lnet/minecraft/nbt/NbtIntArray;remove(I)Lnet/minecraft/nbt/NbtInt;
-
getHeldType
public byte getHeldType()Gets the type of element that this list holds.- Specified by:
getHeldType
in classAbstractNbtList<NbtInt>
- Returns:
- the type of element that this list holds
- Mappings:
Namespace Name Mixin selector official e
Lmz;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<NbtInt>
- Specified by:
clear
in interfaceList<NbtInt>
- Overrides:
clear
in classAbstractList<NbtInt>
-