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
official hj
intermediary net/minecraft/class_2359
named net/minecraft/util/collection/IndexedIterable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int index)
     
    default T
    getOrThrow(int index)
    Returns the value at index.
    int
    getRawId(T value)
     
    int
     

    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
      official a Lhj;a:I
      intermediary field_34829 Lnet/minecraft/class_2359;field_34829:I
      named ABSENT_RAW_ID Lnet/minecraft/util/collection/IndexedIterable;ABSENT_RAW_ID:I
  • Method Details

    • getRawId

      int getRawId(T value)
      Mappings:
      Namespace Name Mixin selector
      official a Lhj;a(Ljava/lang/Object;)I
      intermediary method_10206 Lnet/minecraft/class_2359;method_10206(Ljava/lang/Object;)I
      named getRawId Lnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)I
    • get

      @Nullable T get(int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lhj;a(I)Ljava/lang/Object;
      intermediary method_10200 Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;
      named get Lnet/minecraft/util/collection/IndexedIterable;get(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
      official b Lhj;b(I)Ljava/lang/Object;
      intermediary method_39974 Lnet/minecraft/class_2359;method_39974(I)Ljava/lang/Object;
      named getOrThrow Lnet/minecraft/util/collection/IndexedIterable;getOrThrow(I)Ljava/lang/Object;
    • size

      int size()
      Mappings:
      Namespace Name Mixin selector
      official b Lhj;b()I
      intermediary method_10204 Lnet/minecraft/class_2359;method_10204()I
      named size Lnet/minecraft/util/collection/IndexedIterable;size()I