Package net.minecraft.util
Class ObjectIntIdentityMap<T>
- java.lang.Object
-
- net.minecraft.util.ObjectIntIdentityMap<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,IObjectIntIterable<T>
- Direct Known Subclasses:
GameData.ClearableObjectIntIdentityMap
public class ObjectIntIdentityMap<T> extends java.lang.Object implements IObjectIntIterable<T>
-
-
Constructor Summary
Constructors Constructor Description ObjectIntIdentityMap()
ObjectIntIdentityMap(int p_i46984_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T p_195867_1_)
void
addMapping(T p_148746_1_, int p_148746_2_)
T
byId(int p_148745_1_)
int
getId(T p_148757_1_)
java.util.Iterator<T>
iterator()
int
size()
-
-
-
Method Detail
-
addMapping
public void addMapping(T p_148746_1_, int p_148746_2_)
-
add
public void add(T p_195867_1_)
-
getId
public int getId(T p_148757_1_)
- Specified by:
getId
in interfaceIObjectIntIterable<T>
-
byId
@Nullable public final T byId(int p_148745_1_)
- Specified by:
byId
in interfaceIObjectIntIterable<T>
-
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
-
size
public int size()
-
-