Interface IndexedIterable<T>

All Superinterfaces:
Iterable<T>
All Known Subinterfaces:
DefaultedRegistry<T>, MutableRegistry<T>, Registry<T>
All Known Implementing Classes:
IdList, Int2ObjectBiMap, SimpleDefaultedRegistry, SimpleRegistry

public interface IndexedIterable<T> extends Iterable<T>
Mappings:
Namespace Name
named net/minecraft/util/collection/IndexedIterable
intermediary net/minecraft/class_2359
official jn
  • 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 Ljn;a:I
  • Method Details

    • getRawId

      int getRawId(T value)
      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 Ljn;a(Ljava/lang/Object;)I
    • get

      @Nullable T get(int index)
      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 Ljn;a(I)Ljava/lang/Object;
    • getOrThrow

      default T getOrThrow(int index)
      Returns the value at index.
      Returns:
      the value at index
      Throws:
      IllegalArgumentException - if the value is null
      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 Ljn;b(I)Ljava/lang/Object;
    • getRawIdOrThrow

      default int getRawIdOrThrow(T value)
      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 Ljn;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 b Ljn;b()I