Package net.minecraft.util.collection
Class Int2ObjectBiMap<K>
java.lang.Object
net.minecraft.util.collection.Int2ObjectBiMap<K>
- All Implemented Interfaces:
Iterable<K>,IndexedIterable<K>
- Mappings:
Namespace Name official anmintermediary net/minecraft/class_3513named net/minecraft/util/collection/Int2ObjectBiMap
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final Objectprivate int[]private K[]private static final floatprivate intprivate intprivate K[]Fields inherited from interface net.minecraft.util.collection.IndexedIterable
ABSENT_RAW_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInt2ObjectBiMap(int size) privateInt2ObjectBiMap(K[] values, int[] ids, K[] idToValues, int nextId, int size) -
Method Summary
Modifier and TypeMethodDescriptionintvoidclear()booleanbooleancontainsKey(int index) copy()static <A> Int2ObjectBiMap<A>create(int expectedSize) private intfindFree(int size) private intget(int index) private intgetIdealIndex(K value) private intgetIdFromIndex(int index) intiterator()private intnextId()voidprivate voidresize(int newSize) intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.collection.IndexedIterable
getOrThrowMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
ABSENT
private static final int ABSENT- See Also:
- Mappings:
Namespace Name Mixin selector official bLanm;b:Iintermediary field_29828Lnet/minecraft/class_3513;field_29828:Inamed ABSENTLnet/minecraft/util/collection/Int2ObjectBiMap;ABSENT:I
-
EMPTY
- Mappings:
Namespace Name Mixin selector official cLanm;c:Ljava/lang/Object;intermediary field_15650Lnet/minecraft/class_3513;field_15650:Ljava/lang/Object;named EMPTYLnet/minecraft/util/collection/Int2ObjectBiMap;EMPTY:Ljava/lang/Object;
-
LOAD_FACTOR
private static final float LOAD_FACTOR- See Also:
- Mappings:
Namespace Name Mixin selector official dLanm;d:Fintermediary field_29829Lnet/minecraft/class_3513;field_29829:Fnamed LOAD_FACTORLnet/minecraft/util/collection/Int2ObjectBiMap;LOAD_FACTOR:F
-
values
- Mappings:
Namespace Name Mixin selector official eLanm;e:[Ljava/lang/Object;intermediary field_15651Lnet/minecraft/class_3513;field_15651:[Ljava/lang/Object;named valuesLnet/minecraft/util/collection/Int2ObjectBiMap;values:[Ljava/lang/Object;
-
ids
private int[] ids- Mappings:
Namespace Name Mixin selector official fLanm;f:[Iintermediary field_15646Lnet/minecraft/class_3513;field_15646:[Inamed idsLnet/minecraft/util/collection/Int2ObjectBiMap;ids:[I
-
idToValues
- Mappings:
Namespace Name Mixin selector official gLanm;g:[Ljava/lang/Object;intermediary field_15647Lnet/minecraft/class_3513;field_15647:[Ljava/lang/Object;named idToValuesLnet/minecraft/util/collection/Int2ObjectBiMap;idToValues:[Ljava/lang/Object;
-
nextId
private int nextId- Mappings:
Namespace Name Mixin selector official hLanm;h:Iintermediary field_15649Lnet/minecraft/class_3513;field_15649:Inamed nextIdLnet/minecraft/util/collection/Int2ObjectBiMap;nextId:I
-
size
private int size- Mappings:
Namespace Name Mixin selector official iLanm;i:Iintermediary field_15648Lnet/minecraft/class_3513;field_15648:Inamed sizeLnet/minecraft/util/collection/Int2ObjectBiMap;size:I
-
-
Constructor Details
-
Int2ObjectBiMap
private Int2ObjectBiMap(int size) - Mappings:
Namespace Name Mixin selector official <init>Lanm;<init>(I)Vintermediary <init>Lnet/minecraft/class_3513;<init>(I)Vnamed <init>Lnet/minecraft/util/collection/Int2ObjectBiMap;<init>(I)V
-
Int2ObjectBiMap
- Mappings:
Namespace Name Mixin selector official <init>Lanm;<init>([Ljava/lang/Object;[I[Ljava/lang/Object;II)Vintermediary <init>Lnet/minecraft/class_3513;<init>([Ljava/lang/Object;[I[Ljava/lang/Object;II)Vnamed <init>Lnet/minecraft/util/collection/Int2ObjectBiMap;<init>([Ljava/lang/Object;[I[Ljava/lang/Object;II)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official cLanm;c(I)Lanm;intermediary method_37913Lnet/minecraft/class_3513;method_37913(I)Lnet/minecraft/class_3513;named createLnet/minecraft/util/collection/Int2ObjectBiMap;create(I)Lnet/minecraft/util/collection/Int2ObjectBiMap;
-
getRawId
- Specified by:
getRawIdin interfaceIndexedIterable<K>- Mappings:
Namespace Name Mixin selector official aLhe;a(Ljava/lang/Object;)Iintermediary method_10206Lnet/minecraft/class_2359;method_10206(Ljava/lang/Object;)Inamed getRawIdLnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)I
-
get
- Specified by:
getin interfaceIndexedIterable<K>- Mappings:
Namespace Name Mixin selector official aLhe;a(I)Ljava/lang/Object;intermediary method_10200Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;named getLnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;
-
getIdFromIndex
private int getIdFromIndex(int index) - Mappings:
Namespace Name Mixin selector official eLanm;e(I)Iintermediary method_15222Lnet/minecraft/class_3513;method_15222(I)Inamed getIdFromIndexLnet/minecraft/util/collection/Int2ObjectBiMap;getIdFromIndex(I)I
-
contains
- Mappings:
Namespace Name Mixin selector official bLanm;b(Ljava/lang/Object;)Zintermediary method_34904Lnet/minecraft/class_3513;method_34904(Ljava/lang/Object;)Znamed containsLnet/minecraft/util/collection/Int2ObjectBiMap;contains(Ljava/lang/Object;)Z
-
containsKey
public boolean containsKey(int index) - Mappings:
Namespace Name Mixin selector official dLanm;d(I)Zintermediary method_34903Lnet/minecraft/class_3513;method_34903(I)Znamed containsKeyLnet/minecraft/util/collection/Int2ObjectBiMap;containsKey(I)Z
-
add
- Mappings:
Namespace Name Mixin selector official cLanm;c(Ljava/lang/Object;)Iintermediary method_15225Lnet/minecraft/class_3513;method_15225(Ljava/lang/Object;)Inamed addLnet/minecraft/util/collection/Int2ObjectBiMap;add(Ljava/lang/Object;)I
-
nextId
private int nextId()- Mappings:
Namespace Name Mixin selector official dLanm;d()Iintermediary method_15226Lnet/minecraft/class_3513;method_15226()Inamed nextIdLnet/minecraft/util/collection/Int2ObjectBiMap;nextId()I
-
resize
private void resize(int newSize) - Mappings:
Namespace Name Mixin selector official fLanm;f(I)Vintermediary method_15224Lnet/minecraft/class_3513;method_15224(I)Vnamed resizeLnet/minecraft/util/collection/Int2ObjectBiMap;resize(I)V
-
put
- Mappings:
Namespace Name Mixin selector official aLanm;a(Ljava/lang/Object;I)Vintermediary method_15230Lnet/minecraft/class_3513;method_15230(Ljava/lang/Object;I)Vnamed putLnet/minecraft/util/collection/Int2ObjectBiMap;put(Ljava/lang/Object;I)V
-
getIdealIndex
- Mappings:
Namespace Name Mixin selector official dLanm;d(Ljava/lang/Object;)Iintermediary method_15228Lnet/minecraft/class_3513;method_15228(Ljava/lang/Object;)Inamed getIdealIndexLnet/minecraft/util/collection/Int2ObjectBiMap;getIdealIndex(Ljava/lang/Object;)I
-
findIndex
- Mappings:
Namespace Name Mixin selector official bLanm;b(Ljava/lang/Object;I)Iintermediary method_15232Lnet/minecraft/class_3513;method_15232(Ljava/lang/Object;I)Inamed findIndexLnet/minecraft/util/collection/Int2ObjectBiMap;findIndex(Ljava/lang/Object;I)I
-
findFree
private int findFree(int size) - Mappings:
Namespace Name Mixin selector official gLanm;g(I)Iintermediary method_15223Lnet/minecraft/class_3513;method_15223(I)Inamed findFreeLnet/minecraft/util/collection/Int2ObjectBiMap;findFree(I)I
-
iterator
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official aLanm;a()Vintermediary method_15229Lnet/minecraft/class_3513;method_15229()Vnamed clearLnet/minecraft/util/collection/Int2ObjectBiMap;clear()V
-
size
public int size()- Specified by:
sizein interfaceIndexedIterable<K>- Mappings:
Namespace Name Mixin selector official bLhe;b()Iintermediary method_10204Lnet/minecraft/class_2359;method_10204()Inamed sizeLnet/minecraft/util/collection/IndexedIterable;size()I
-
copy
- Mappings:
Namespace Name Mixin selector official cLanm;c()Lanm;intermediary method_39940Lnet/minecraft/class_3513;method_39940()Lnet/minecraft/class_3513;named copyLnet/minecraft/util/collection/Int2ObjectBiMap;copy()Lnet/minecraft/util/collection/Int2ObjectBiMap;
-