Class Int2ObjectBiMap<K>

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

public class Int2ObjectBiMap<K> extends Object implements IndexedIterable<K>
Mappings:
Namespace Name
named net/minecraft/util/collection/Int2ObjectBiMap
intermediary net/minecraft/class_3513
official azb
  • Field Details

    • ABSENT

      private static final int ABSENT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ABSENT Lnet/minecraft/util/collection/Int2ObjectBiMap;ABSENT:I
      intermediary field_29828 Lnet/minecraft/class_3513;field_29828:I
      official b Lazb;b:I
    • EMPTY

      private static final Object EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/util/collection/Int2ObjectBiMap;EMPTY:Ljava/lang/Object;
      intermediary field_15650 Lnet/minecraft/class_3513;field_15650:Ljava/lang/Object;
      official c Lazb;c:Ljava/lang/Object;
    • LOAD_FACTOR

      private static final float LOAD_FACTOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LOAD_FACTOR Lnet/minecraft/util/collection/Int2ObjectBiMap;LOAD_FACTOR:F
      intermediary field_29829 Lnet/minecraft/class_3513;field_29829:F
      official d Lazb;d:F
    • values

      private K[] values
      Mappings:
      Namespace Name Mixin selector
      named values Lnet/minecraft/util/collection/Int2ObjectBiMap;values:[Ljava/lang/Object;
      intermediary field_15651 Lnet/minecraft/class_3513;field_15651:[Ljava/lang/Object;
      official e Lazb;e:[Ljava/lang/Object;
    • ids

      private int[] ids
      Mappings:
      Namespace Name Mixin selector
      named ids Lnet/minecraft/util/collection/Int2ObjectBiMap;ids:[I
      intermediary field_15646 Lnet/minecraft/class_3513;field_15646:[I
      official f Lazb;f:[I
    • idToValues

      private K[] idToValues
      Mappings:
      Namespace Name Mixin selector
      named idToValues Lnet/minecraft/util/collection/Int2ObjectBiMap;idToValues:[Ljava/lang/Object;
      intermediary field_15647 Lnet/minecraft/class_3513;field_15647:[Ljava/lang/Object;
      official g Lazb;g:[Ljava/lang/Object;
    • nextId

      private int nextId
      Mappings:
      Namespace Name Mixin selector
      named nextId Lnet/minecraft/util/collection/Int2ObjectBiMap;nextId:I
      intermediary field_15649 Lnet/minecraft/class_3513;field_15649:I
      official h Lazb;h:I
    • size

      private int size
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/util/collection/Int2ObjectBiMap;size:I
      intermediary field_15648 Lnet/minecraft/class_3513;field_15648:I
      official i Lazb;i:I
  • Constructor Details

    • Int2ObjectBiMap

      private Int2ObjectBiMap(int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/collection/Int2ObjectBiMap;<init>(I)V
      intermediary <init> Lnet/minecraft/class_3513;<init>(I)V
      official <init> Lazb;<init>(I)V
    • Int2ObjectBiMap

      private Int2ObjectBiMap(K[] values, int[] ids, K[] idToValues, int nextId, int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/collection/Int2ObjectBiMap;<init>([Ljava/lang/Object;[I[Ljava/lang/Object;II)V
      intermediary <init> Lnet/minecraft/class_3513;<init>([Ljava/lang/Object;[I[Ljava/lang/Object;II)V
      official <init> Lazb;<init>([Ljava/lang/Object;[I[Ljava/lang/Object;II)V
  • Method Details

    • create

      public static <A> Int2ObjectBiMap<A> create(int expectedSize)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/util/collection/Int2ObjectBiMap;create(I)Lnet/minecraft/util/collection/Int2ObjectBiMap;
      intermediary method_37913 Lnet/minecraft/class_3513;method_37913(I)Lnet/minecraft/class_3513;
      official c Lazb;c(I)Lazb;
    • getRawId

      public int getRawId(@Nullable K value)
      Specified by:
      getRawId in interface IndexedIterable<K>
      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

      @Nullable public K get(int index)
      Specified by:
      get in interface IndexedIterable<K>
      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;
    • getIdFromIndex

      private int getIdFromIndex(int index)
      Mappings:
      Namespace Name Mixin selector
      named getIdFromIndex Lnet/minecraft/util/collection/Int2ObjectBiMap;getIdFromIndex(I)I
      intermediary method_15222 Lnet/minecraft/class_3513;method_15222(I)I
      official e Lazb;e(I)I
    • contains

      public boolean contains(K value)
      Mappings:
      Namespace Name Mixin selector
      named contains Lnet/minecraft/util/collection/Int2ObjectBiMap;contains(Ljava/lang/Object;)Z
      intermediary method_34904 Lnet/minecraft/class_3513;method_34904(Ljava/lang/Object;)Z
      official b Lazb;b(Ljava/lang/Object;)Z
    • containsKey

      public boolean containsKey(int index)
      Mappings:
      Namespace Name Mixin selector
      named containsKey Lnet/minecraft/util/collection/Int2ObjectBiMap;containsKey(I)Z
      intermediary method_34903 Lnet/minecraft/class_3513;method_34903(I)Z
      official d Lazb;d(I)Z
    • add

      public int add(K value)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/collection/Int2ObjectBiMap;add(Ljava/lang/Object;)I
      intermediary method_15225 Lnet/minecraft/class_3513;method_15225(Ljava/lang/Object;)I
      official d Lazb;d(Ljava/lang/Object;)I
    • nextId

      private int nextId()
      Mappings:
      Namespace Name Mixin selector
      named nextId Lnet/minecraft/util/collection/Int2ObjectBiMap;nextId()I
      intermediary method_15226 Lnet/minecraft/class_3513;method_15226()I
      official c Lazb;c()I
    • resize

      private void resize(int newSize)
      Mappings:
      Namespace Name Mixin selector
      named resize Lnet/minecraft/util/collection/Int2ObjectBiMap;resize(I)V
      intermediary method_15224 Lnet/minecraft/class_3513;method_15224(I)V
      official f Lazb;f(I)V
    • put

      public void put(K value, int id)
      Mappings:
      Namespace Name Mixin selector
      named put Lnet/minecraft/util/collection/Int2ObjectBiMap;put(Ljava/lang/Object;I)V
      intermediary method_15230 Lnet/minecraft/class_3513;method_15230(Ljava/lang/Object;I)V
      official a Lazb;a(Ljava/lang/Object;I)V
    • getIdealIndex

      private int getIdealIndex(@Nullable K value)
      Mappings:
      Namespace Name Mixin selector
      named getIdealIndex Lnet/minecraft/util/collection/Int2ObjectBiMap;getIdealIndex(Ljava/lang/Object;)I
      intermediary method_15228 Lnet/minecraft/class_3513;method_15228(Ljava/lang/Object;)I
      official e Lazb;e(Ljava/lang/Object;)I
    • findIndex

      private int findIndex(@Nullable K value, int id)
      Mappings:
      Namespace Name Mixin selector
      named findIndex Lnet/minecraft/util/collection/Int2ObjectBiMap;findIndex(Ljava/lang/Object;I)I
      intermediary method_15232 Lnet/minecraft/class_3513;method_15232(Ljava/lang/Object;I)I
      official b Lazb;b(Ljava/lang/Object;I)I
    • findFree

      private int findFree(int size)
      Mappings:
      Namespace Name Mixin selector
      named findFree Lnet/minecraft/util/collection/Int2ObjectBiMap;findFree(I)I
      intermediary method_15223 Lnet/minecraft/class_3513;method_15223(I)I
      official g Lazb;g(I)I
    • iterator

      public Iterator<K> iterator()
      Specified by:
      iterator in interface Iterable<K>
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/util/collection/Int2ObjectBiMap;clear()V
      intermediary method_15229 Lnet/minecraft/class_3513;method_15229()V
      official a Lazb;a()V
    • size

      public int size()
      Specified by:
      size in interface IndexedIterable<K>
      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
    • copy

      public Int2ObjectBiMap<K> copy()
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/util/collection/Int2ObjectBiMap;copy()Lnet/minecraft/util/collection/Int2ObjectBiMap;
      intermediary method_39940 Lnet/minecraft/class_3513;method_39940()Lnet/minecraft/class_3513;
      official b Lazb;b()Lazb;