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 named net/minecraft/util/collection/Int2ObjectBiMapintermediary net/minecraft/class_3513official bfc
-
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
getOrThrow, getRawIdOrThrowMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
ABSENT
private static final int ABSENT- See Also:
- Mappings:
Namespace Name Mixin selector named ABSENTLnet/minecraft/util/collection/Int2ObjectBiMap;ABSENT:Iintermediary field_29828Lnet/minecraft/class_3513;field_29828:Iofficial bLbfc;b:I
-
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/util/collection/Int2ObjectBiMap;EMPTY:Ljava/lang/Object;intermediary field_15650Lnet/minecraft/class_3513;field_15650:Ljava/lang/Object;official cLbfc;c:Ljava/lang/Object;
-
LOAD_FACTOR
private static final float LOAD_FACTOR- See Also:
- Mappings:
Namespace Name Mixin selector named LOAD_FACTORLnet/minecraft/util/collection/Int2ObjectBiMap;LOAD_FACTOR:Fintermediary field_29829Lnet/minecraft/class_3513;field_29829:Fofficial dLbfc;d:F
-
values
- Mappings:
Namespace Name Mixin selector named valuesLnet/minecraft/util/collection/Int2ObjectBiMap;values:[Ljava/lang/Object;intermediary field_15651Lnet/minecraft/class_3513;field_15651:[Ljava/lang/Object;official eLbfc;e:[Ljava/lang/Object;
-
ids
private int[] ids- Mappings:
Namespace Name Mixin selector named idsLnet/minecraft/util/collection/Int2ObjectBiMap;ids:[Iintermediary field_15646Lnet/minecraft/class_3513;field_15646:[Iofficial fLbfc;f:[I
-
idToValues
- Mappings:
Namespace Name Mixin selector named idToValuesLnet/minecraft/util/collection/Int2ObjectBiMap;idToValues:[Ljava/lang/Object;intermediary field_15647Lnet/minecraft/class_3513;field_15647:[Ljava/lang/Object;official gLbfc;g:[Ljava/lang/Object;
-
nextId
private int nextId- Mappings:
Namespace Name Mixin selector named nextIdLnet/minecraft/util/collection/Int2ObjectBiMap;nextId:Iintermediary field_15649Lnet/minecraft/class_3513;field_15649:Iofficial hLbfc;h:I
-
size
private int size- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/util/collection/Int2ObjectBiMap;size:Iintermediary field_15648Lnet/minecraft/class_3513;field_15648:Iofficial iLbfc;i:I
-
-
Constructor Details
-
Int2ObjectBiMap
private Int2ObjectBiMap(int size) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/collection/Int2ObjectBiMap;<init>(I)Vintermediary <init>Lnet/minecraft/class_3513;<init>(I)Vofficial <init>Lbfc;<init>(I)V
-
Int2ObjectBiMap
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/collection/Int2ObjectBiMap;<init>([Ljava/lang/Object;[I[Ljava/lang/Object;II)Vintermediary <init>Lnet/minecraft/class_3513;<init>([Ljava/lang/Object;[I[Ljava/lang/Object;II)Vofficial <init>Lbfc;<init>([Ljava/lang/Object;[I[Ljava/lang/Object;II)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/util/collection/Int2ObjectBiMap;create(I)Lnet/minecraft/util/collection/Int2ObjectBiMap;intermediary method_37913Lnet/minecraft/class_3513;method_37913(I)Lnet/minecraft/class_3513;official cLbfc;c(I)Lbfc;
-
getRawId
- Specified by:
getRawIdin interfaceIndexedIterable<K>- Mappings:
Namespace Name Mixin selector named getRawIdLnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)Iintermediary method_10206Lnet/minecraft/class_2359;method_10206(Ljava/lang/Object;)Iofficial aLjo;a(Ljava/lang/Object;)I
-
get
- Specified by:
getin interfaceIndexedIterable<K>- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;intermediary method_10200Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;official aLjo;a(I)Ljava/lang/Object;
-
getIdFromIndex
private int getIdFromIndex(int index) - Mappings:
Namespace Name Mixin selector named getIdFromIndexLnet/minecraft/util/collection/Int2ObjectBiMap;getIdFromIndex(I)Iintermediary method_15222Lnet/minecraft/class_3513;method_15222(I)Iofficial eLbfc;e(I)I
-
contains
- Mappings:
Namespace Name Mixin selector named containsLnet/minecraft/util/collection/Int2ObjectBiMap;contains(Ljava/lang/Object;)Zintermediary method_34904Lnet/minecraft/class_3513;method_34904(Ljava/lang/Object;)Zofficial bLbfc;b(Ljava/lang/Object;)Z
-
containsKey
public boolean containsKey(int index) - Mappings:
Namespace Name Mixin selector named containsKeyLnet/minecraft/util/collection/Int2ObjectBiMap;containsKey(I)Zintermediary method_34903Lnet/minecraft/class_3513;method_34903(I)Zofficial dLbfc;d(I)Z
-
add
- Mappings:
Namespace Name Mixin selector named addLnet/minecraft/util/collection/Int2ObjectBiMap;add(Ljava/lang/Object;)Iintermediary method_15225Lnet/minecraft/class_3513;method_15225(Ljava/lang/Object;)Iofficial dLbfc;d(Ljava/lang/Object;)I
-
nextId
private int nextId()- Mappings:
Namespace Name Mixin selector named nextIdLnet/minecraft/util/collection/Int2ObjectBiMap;nextId()Iintermediary method_15226Lnet/minecraft/class_3513;method_15226()Iofficial cLbfc;c()I
-
resize
private void resize(int newSize) - Mappings:
Namespace Name Mixin selector named resizeLnet/minecraft/util/collection/Int2ObjectBiMap;resize(I)Vintermediary method_15224Lnet/minecraft/class_3513;method_15224(I)Vofficial fLbfc;f(I)V
-
put
- Mappings:
Namespace Name Mixin selector named putLnet/minecraft/util/collection/Int2ObjectBiMap;put(Ljava/lang/Object;I)Vintermediary method_15230Lnet/minecraft/class_3513;method_15230(Ljava/lang/Object;I)Vofficial aLbfc;a(Ljava/lang/Object;I)V
-
getIdealIndex
- Mappings:
Namespace Name Mixin selector named getIdealIndexLnet/minecraft/util/collection/Int2ObjectBiMap;getIdealIndex(Ljava/lang/Object;)Iintermediary method_15228Lnet/minecraft/class_3513;method_15228(Ljava/lang/Object;)Iofficial eLbfc;e(Ljava/lang/Object;)I
-
findIndex
- Mappings:
Namespace Name Mixin selector named findIndexLnet/minecraft/util/collection/Int2ObjectBiMap;findIndex(Ljava/lang/Object;I)Iintermediary method_15232Lnet/minecraft/class_3513;method_15232(Ljava/lang/Object;I)Iofficial bLbfc;b(Ljava/lang/Object;I)I
-
findFree
private int findFree(int size) - Mappings:
Namespace Name Mixin selector named findFreeLnet/minecraft/util/collection/Int2ObjectBiMap;findFree(I)Iintermediary method_15223Lnet/minecraft/class_3513;method_15223(I)Iofficial gLbfc;g(I)I
-
iterator
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector named clearLnet/minecraft/util/collection/Int2ObjectBiMap;clear()Vintermediary method_15229Lnet/minecraft/class_3513;method_15229()Vofficial aLbfc;a()V
-
size
public int size()- Specified by:
sizein interfaceIndexedIterable<K>- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/util/collection/IndexedIterable;size()Iintermediary method_10204Lnet/minecraft/class_2359;method_10204()Iofficial dLjo;d()I
-
copy
- Mappings:
Namespace Name Mixin selector named copyLnet/minecraft/util/collection/Int2ObjectBiMap;copy()Lnet/minecraft/util/collection/Int2ObjectBiMap;intermediary method_39940Lnet/minecraft/class_3513;method_39940()Lnet/minecraft/class_3513;official bLbfc;b()Lbfc;
-