Package net.minecraft.util.collection
Interface IndexedIterable<T>
- All Superinterfaces:
Iterable<T>
- All Known Subinterfaces:
DefaultedRegistry<T>
,MutableRegistry<T>
,Registry<T>
- All Known Implementing Classes:
IdList
,Int2ObjectBiMap
,SimpleDefaultedRegistry
,SimpleRegistry
- Mappings:
Namespace Name named net/minecraft/util/collection/IndexedIterable
intermediary net/minecraft/class_2359
official jv
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(int index) default T
getOrThrow
(int index) Returns the value atindex
.int
default int
getRawIdOrThrow
(T value) int
size()
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Field Details
-
ABSENT_RAW_ID
static final int ABSENT_RAW_ID- See Also:
- Mappings:
Namespace Name Mixin selector named ABSENT_RAW_ID
Lnet/minecraft/util/collection/IndexedIterable;ABSENT_RAW_ID:I
intermediary field_34829
Lnet/minecraft/class_2359;field_34829:I
official a
Ljv;a:I
-
-
Method Details
-
getRawId
- Mappings:
Namespace Name Mixin selector named getRawId
Lnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)I
intermediary method_10206
Lnet/minecraft/class_2359;method_10206(Ljava/lang/Object;)I
official a
Ljv;a(Ljava/lang/Object;)I
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;
intermediary method_10200
Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;
official a
Ljv;a(I)Ljava/lang/Object;
-
getOrThrow
Returns the value atindex
.- Returns:
- the value at
index
- Throws:
IllegalArgumentException
- if the value isnull
- Mappings:
Namespace Name Mixin selector named getOrThrow
Lnet/minecraft/util/collection/IndexedIterable;getOrThrow(I)Ljava/lang/Object;
intermediary method_39974
Lnet/minecraft/class_2359;method_39974(I)Ljava/lang/Object;
official b
Ljv;b(I)Ljava/lang/Object;
-
getRawIdOrThrow
- Mappings:
Namespace Name Mixin selector named getRawIdOrThrow
Lnet/minecraft/util/collection/IndexedIterable;getRawIdOrThrow(Ljava/lang/Object;)I
intermediary method_56158
Lnet/minecraft/class_2359;method_56158(Ljava/lang/Object;)I
official c
Ljv;c(Ljava/lang/Object;)I
-
size
int size()- Mappings:
Namespace Name Mixin selector named size
Lnet/minecraft/util/collection/IndexedIterable;size()I
intermediary method_10204
Lnet/minecraft/class_2359;method_10204()I
official d
Ljv;d()I
-