Package net.minecraft.util
Class CrudeIncrementalIntIdentityHashBiMap<K>
java.lang.Object
net.minecraft.util.CrudeIncrementalIntIdentityHashBiMap<K>
-
Field Summary
-
Constructor Summary
-
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
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 java.lang.Iterable
forEach, spliterator
-
Field Details
-
NOT_FOUND
public static final int NOT_FOUND- See Also:
- Constant Field Values
-
EMPTY_SLOT
-
LOADFACTOR
private static final float LOADFACTOR- See Also:
- Constant Field Values
-
keys
-
values
private int[] values -
byId
-
nextId
private int nextId -
size
private int size
-
-
Constructor Details
-
CrudeIncrementalIntIdentityHashBiMap
public CrudeIncrementalIntIdentityHashBiMap(int p_13553_)
-
-
Method Details
-
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()
-