Class IdList<T>

java.lang.Object
net.minecraft.util.collection.IdList<T>
All Implemented Interfaces:
Iterable<T>, IndexedIterable<T>

public class IdList<T> extends Object implements IndexedIterable<T>
Mappings:
Namespace Name
named net/minecraft/util/collection/IdList
intermediary net/minecraft/class_2361
official js
  • Field Details

    • nextId

      private int nextId
      Mappings:
      Namespace Name Mixin selector
      named nextId Lnet/minecraft/util/collection/IdList;nextId:I
      intermediary field_11099 Lnet/minecraft/class_2361;field_11099:I
      official b Ljs;b:I
    • idMap

      private final Reference2IntMap<T> idMap
      Mappings:
      Namespace Name Mixin selector
      named idMap Lnet/minecraft/util/collection/IdList;idMap:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;
      intermediary field_11100 Lnet/minecraft/class_2361;field_11100:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;
      official c Ljs;c:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;
    • list

      private final List<T> list
      Mappings:
      Namespace Name Mixin selector
      named list Lnet/minecraft/util/collection/IdList;list:Ljava/util/List;
      intermediary field_11098 Lnet/minecraft/class_2361;field_11098:Ljava/util/List;
      official d Ljs;d:Ljava/util/List;
  • Constructor Details

    • IdList

      public IdList()
    • IdList

      public IdList(int initialSize)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/collection/IdList;<init>(I)V
      intermediary <init> Lnet/minecraft/class_2361;<init>(I)V
      official <init> Ljs;<init>(I)V
  • Method Details

    • set

      public void set(T value, int id)
      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/util/collection/IdList;set(Ljava/lang/Object;I)V
      intermediary method_10203 Lnet/minecraft/class_2361;method_10203(Ljava/lang/Object;I)V
      official a Ljs;a(Ljava/lang/Object;I)V
    • add

      public void add(T value)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/collection/IdList;add(Ljava/lang/Object;)V
      intermediary method_10205 Lnet/minecraft/class_2361;method_10205(Ljava/lang/Object;)V
      official b Ljs;b(Ljava/lang/Object;)V
    • getRawId

      public int getRawId(T value)
      Specified by:
      getRawId in interface IndexedIterable<T>
      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 Ljr;a(Ljava/lang/Object;)I
    • get

      @Nullable public final T get(int index)
      Specified by:
      get in interface IndexedIterable<T>
      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 Ljr;a(I)Ljava/lang/Object;
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • containsKey

      public boolean containsKey(int index)
      Mappings:
      Namespace Name Mixin selector
      named containsKey Lnet/minecraft/util/collection/IdList;containsKey(I)Z
      intermediary method_35841 Lnet/minecraft/class_2361;method_35841(I)Z
      official c Ljs;c(I)Z
    • size

      public int size()
      Specified by:
      size in interface IndexedIterable<T>
      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 c Ljr;c()I