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 aoi
intermediary net/minecraft/class_3513
named net/minecraft/util/collection/Int2ObjectBiMap
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final Object
private int[]
private K[]
private static final float
private int
private int
private K[]
Fields inherited from interface net.minecraft.util.collection.IndexedIterable
ABSENT_RAW_ID
-
Constructor Summary
ModifierConstructorDescriptionprivate
Int2ObjectBiMap
(int size) private
Int2ObjectBiMap
(K[] values, int[] ids, K[] idToValues, int nextId, int size) -
Method Summary
Modifier and TypeMethodDescriptionint
void
clear()
boolean
boolean
containsKey
(int index) copy()
static <A> Int2ObjectBiMap<A>
create
(int expectedSize) private int
findFree
(int size) private int
get
(int index) private int
getIdealIndex
(K value) private int
getIdFromIndex
(int index) int
iterator()
private int
nextId()
void
private void
resize
(int newSize) int
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.collection.IndexedIterable
getOrThrow
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
ABSENT
private static final int ABSENT- See Also:
- Mappings:
Namespace Name Mixin selector official b
Laoi;b:I
intermediary field_29828
Lnet/minecraft/class_3513;field_29828:I
named ABSENT
Lnet/minecraft/util/collection/Int2ObjectBiMap;ABSENT:I
-
EMPTY
- Mappings:
Namespace Name Mixin selector official c
Laoi;c:Ljava/lang/Object;
intermediary field_15650
Lnet/minecraft/class_3513;field_15650:Ljava/lang/Object;
named EMPTY
Lnet/minecraft/util/collection/Int2ObjectBiMap;EMPTY:Ljava/lang/Object;
-
LOAD_FACTOR
private static final float LOAD_FACTOR- See Also:
- Mappings:
Namespace Name Mixin selector official d
Laoi;d:F
intermediary field_29829
Lnet/minecraft/class_3513;field_29829:F
named LOAD_FACTOR
Lnet/minecraft/util/collection/Int2ObjectBiMap;LOAD_FACTOR:F
-
values
- Mappings:
Namespace Name Mixin selector official e
Laoi;e:[Ljava/lang/Object;
intermediary field_15651
Lnet/minecraft/class_3513;field_15651:[Ljava/lang/Object;
named values
Lnet/minecraft/util/collection/Int2ObjectBiMap;values:[Ljava/lang/Object;
-
ids
private int[] ids- Mappings:
Namespace Name Mixin selector official f
Laoi;f:[I
intermediary field_15646
Lnet/minecraft/class_3513;field_15646:[I
named ids
Lnet/minecraft/util/collection/Int2ObjectBiMap;ids:[I
-
idToValues
- Mappings:
Namespace Name Mixin selector official g
Laoi;g:[Ljava/lang/Object;
intermediary field_15647
Lnet/minecraft/class_3513;field_15647:[Ljava/lang/Object;
named idToValues
Lnet/minecraft/util/collection/Int2ObjectBiMap;idToValues:[Ljava/lang/Object;
-
nextId
private int nextId- Mappings:
Namespace Name Mixin selector official h
Laoi;h:I
intermediary field_15649
Lnet/minecraft/class_3513;field_15649:I
named nextId
Lnet/minecraft/util/collection/Int2ObjectBiMap;nextId:I
-
size
private int size- Mappings:
Namespace Name Mixin selector official i
Laoi;i:I
intermediary field_15648
Lnet/minecraft/class_3513;field_15648:I
named size
Lnet/minecraft/util/collection/Int2ObjectBiMap;size:I
-
-
Constructor Details
-
Int2ObjectBiMap
private Int2ObjectBiMap(int size) - Mappings:
Namespace Name Mixin selector official <init>
Laoi;<init>(I)V
intermediary <init>
Lnet/minecraft/class_3513;<init>(I)V
named <init>
Lnet/minecraft/util/collection/Int2ObjectBiMap;<init>(I)V
-
Int2ObjectBiMap
- Mappings:
Namespace Name Mixin selector official <init>
Laoi;<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
named <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 c
Laoi;c(I)Laoi;
intermediary method_37913
Lnet/minecraft/class_3513;method_37913(I)Lnet/minecraft/class_3513;
named create
Lnet/minecraft/util/collection/Int2ObjectBiMap;create(I)Lnet/minecraft/util/collection/Int2ObjectBiMap;
-
getRawId
- Specified by:
getRawId
in interfaceIndexedIterable<K>
- Mappings:
Namespace Name Mixin selector official a
Lhi;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
- Specified by:
get
in interfaceIndexedIterable<K>
- Mappings:
Namespace Name Mixin selector official a
Lhi;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;
-
getIdFromIndex
private int getIdFromIndex(int index) - Mappings:
Namespace Name Mixin selector official e
Laoi;e(I)I
intermediary method_15222
Lnet/minecraft/class_3513;method_15222(I)I
named getIdFromIndex
Lnet/minecraft/util/collection/Int2ObjectBiMap;getIdFromIndex(I)I
-
contains
- Mappings:
Namespace Name Mixin selector official b
Laoi;b(Ljava/lang/Object;)Z
intermediary method_34904
Lnet/minecraft/class_3513;method_34904(Ljava/lang/Object;)Z
named contains
Lnet/minecraft/util/collection/Int2ObjectBiMap;contains(Ljava/lang/Object;)Z
-
containsKey
public boolean containsKey(int index) - Mappings:
Namespace Name Mixin selector official d
Laoi;d(I)Z
intermediary method_34903
Lnet/minecraft/class_3513;method_34903(I)Z
named containsKey
Lnet/minecraft/util/collection/Int2ObjectBiMap;containsKey(I)Z
-
add
- Mappings:
Namespace Name Mixin selector official c
Laoi;c(Ljava/lang/Object;)I
intermediary method_15225
Lnet/minecraft/class_3513;method_15225(Ljava/lang/Object;)I
named add
Lnet/minecraft/util/collection/Int2ObjectBiMap;add(Ljava/lang/Object;)I
-
nextId
private int nextId()- Mappings:
Namespace Name Mixin selector official d
Laoi;d()I
intermediary method_15226
Lnet/minecraft/class_3513;method_15226()I
named nextId
Lnet/minecraft/util/collection/Int2ObjectBiMap;nextId()I
-
resize
private void resize(int newSize) - Mappings:
Namespace Name Mixin selector official f
Laoi;f(I)V
intermediary method_15224
Lnet/minecraft/class_3513;method_15224(I)V
named resize
Lnet/minecraft/util/collection/Int2ObjectBiMap;resize(I)V
-
put
- Mappings:
Namespace Name Mixin selector official a
Laoi;a(Ljava/lang/Object;I)V
intermediary method_15230
Lnet/minecraft/class_3513;method_15230(Ljava/lang/Object;I)V
named put
Lnet/minecraft/util/collection/Int2ObjectBiMap;put(Ljava/lang/Object;I)V
-
getIdealIndex
- Mappings:
Namespace Name Mixin selector official d
Laoi;d(Ljava/lang/Object;)I
intermediary method_15228
Lnet/minecraft/class_3513;method_15228(Ljava/lang/Object;)I
named getIdealIndex
Lnet/minecraft/util/collection/Int2ObjectBiMap;getIdealIndex(Ljava/lang/Object;)I
-
findIndex
- Mappings:
Namespace Name Mixin selector official b
Laoi;b(Ljava/lang/Object;I)I
intermediary method_15232
Lnet/minecraft/class_3513;method_15232(Ljava/lang/Object;I)I
named findIndex
Lnet/minecraft/util/collection/Int2ObjectBiMap;findIndex(Ljava/lang/Object;I)I
-
findFree
private int findFree(int size) - Mappings:
Namespace Name Mixin selector official g
Laoi;g(I)I
intermediary method_15223
Lnet/minecraft/class_3513;method_15223(I)I
named findFree
Lnet/minecraft/util/collection/Int2ObjectBiMap;findFree(I)I
-
iterator
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official a
Laoi;a()V
intermediary method_15229
Lnet/minecraft/class_3513;method_15229()V
named clear
Lnet/minecraft/util/collection/Int2ObjectBiMap;clear()V
-
size
public int size()- Specified by:
size
in interfaceIndexedIterable<K>
- Mappings:
Namespace Name Mixin selector official b
Lhi;b()I
intermediary method_10204
Lnet/minecraft/class_2359;method_10204()I
named size
Lnet/minecraft/util/collection/IndexedIterable;size()I
-
copy
- Mappings:
Namespace Name Mixin selector official c
Laoi;c()Laoi;
intermediary method_39940
Lnet/minecraft/class_3513;method_39940()Lnet/minecraft/class_3513;
named copy
Lnet/minecraft/util/collection/Int2ObjectBiMap;copy()Lnet/minecraft/util/collection/Int2ObjectBiMap;
-