Package net.minecraft.util
Class CrudeIncrementalIntIdentityHashBiMap<K>
java.lang.Object
net.minecraft.util.CrudeIncrementalIntIdentityHashBiMap<K>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
CrudeIncrementalIntIdentityHashBiMap
(int p_13553_) private
CrudeIncrementalIntIdentityHashBiMap
(K[] p_199841_, int[] p_199842_, K[] p_199843_, int p_199844_, int p_199845_) -
Method Summary
Modifier and TypeMethodDescriptionint
void
addMapping
(K p_13560_, int p_13561_) byId
(int p_13556_) void
clear()
boolean
contains
(int p_144608_) boolean
copy()
static <A> CrudeIncrementalIntIdentityHashBiMap<A>
create
(int p_184238_) private int
findEmpty
(int p_13576_) int
private int
getValue
(int p_13568_) private void
grow
(int p_13572_) private int
private int
iterator()
private int
nextId()
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.core.IdMap
byIdOrThrow
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
NOT_FOUND
private static final int NOT_FOUND- See Also:
-
EMPTY_SLOT
-
LOADFACTOR
private static final float LOADFACTOR- See Also:
-
keys
-
values
private int[] values -
byId
-
nextId
private int nextId -
size
private int size
-
-
Constructor Details
-
CrudeIncrementalIntIdentityHashBiMap
private CrudeIncrementalIntIdentityHashBiMap(int p_13553_) -
CrudeIncrementalIntIdentityHashBiMap
-
-
Method Details
-
create
-
getId
-
byId
-
getValue
private int getValue(int p_13568_) -
contains
-
contains
public boolean contains(int p_144608_) -
add
-
nextId
private int nextId() -
grow
private void grow(int p_13572_) -
addMapping
-
hash
-
indexOf
-
findEmpty
private int findEmpty(int p_13576_) -
iterator
-
clear
public void clear() -
size
public int size() -
copy
-