Package net.minecraft.util
Class IntObjectStorage<V>
java.lang.Object
net.minecraft.util.IntObjectStorage<V>
public class IntObjectStorage<V> extends Object
- Mappings:
Namespace Name official nmintermediary net/minecraft/class_1697named net/minecraft/util/IntObjectStorage
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classIntObjectStorage.Entry<V> -
Field Summary
Fields Modifier and Type Field Description private IntObjectStorage.Entry<V>[]bucketsprivate intcapacityprivate floatgrowthFactorprivate intsize -
Constructor Summary
Constructors Constructor Description IntObjectStorage() -
Method Summary
Modifier and Type Method Description voidclear()private voidexpandSize(int updatedSize)Vget(int key)(package private) IntObjectStorage.Entry<V>getEntry(int key)private static intgetIndex(int hash, int bucketLength)booleanhasEntry(int key)private static inthash(int key)private voidinsert(int hash, int key, V value, int index)private voidmoveTo(IntObjectStorage.Entry<V>[] newEntryArray)Vremove(int key)(package private) IntObjectStorage.Entry<V>removeEntry(int key)voidset(int key, V value)
-
Field Details
-
buckets
- Mappings:
Namespace Name Mixin selector official aLnm;a:[Lnm$a;intermediary field_7123Lnet/minecraft/class_1697;field_7123:[Lnet/minecraft/class_1697$class_1698;named bucketsLnet/minecraft/util/IntObjectStorage;buckets:[Lnet/minecraft/util/IntObjectStorage$Entry;
-
size
private transient int size- Mappings:
Namespace Name Mixin selector official bLnm;b:Iintermediary field_7124Lnet/minecraft/class_1697;field_7124:Inamed sizeLnet/minecraft/util/IntObjectStorage;size:I
-
capacity
private int capacity- Mappings:
Namespace Name Mixin selector official cLnm;c:Iintermediary field_7125Lnet/minecraft/class_1697;field_7125:Inamed capacityLnet/minecraft/util/IntObjectStorage;capacity:I
-
growthFactor
private final float growthFactor- Mappings:
Namespace Name Mixin selector official dLnm;d:Fintermediary field_7126Lnet/minecraft/class_1697;field_7126:Fnamed growthFactorLnet/minecraft/util/IntObjectStorage;growthFactor:F
-
-
Constructor Details
-
IntObjectStorage
public IntObjectStorage()
-
-
Method Details
-
hash
private static int hash(int key)- Mappings:
Namespace Name Mixin selector official gLnm;g(I)Iintermediary method_6593Lnet/minecraft/class_1697;method_6593(I)Inamed hashLnet/minecraft/util/IntObjectStorage;hash(I)I
-
getIndex
private static int getIndex(int hash, int bucketLength)- Mappings:
Namespace Name Mixin selector official aLnm;a(II)Iintermediary method_6583Lnet/minecraft/class_1697;method_6583(II)Inamed getIndexLnet/minecraft/util/IntObjectStorage;getIndex(II)I
-
get
- Mappings:
Namespace Name Mixin selector official aLnm;a(I)Ljava/lang/Object;intermediary method_6582Lnet/minecraft/class_1697;method_6582(I)Ljava/lang/Object;named getLnet/minecraft/util/IntObjectStorage;get(I)Ljava/lang/Object;
-
hasEntry
public boolean hasEntry(int key)- Mappings:
Namespace Name Mixin selector official bLnm;b(I)Zintermediary method_6587Lnet/minecraft/class_1697;method_6587(I)Znamed hasEntryLnet/minecraft/util/IntObjectStorage;hasEntry(I)Z
-
getEntry
- Mappings:
Namespace Name Mixin selector official cLnm;c(I)Lnm$a;intermediary method_6589Lnet/minecraft/class_1697;method_6589(I)Lnet/minecraft/class_1697$class_1698;named getEntryLnet/minecraft/util/IntObjectStorage;getEntry(I)Lnet/minecraft/util/IntObjectStorage$Entry;
-
set
- Mappings:
Namespace Name Mixin selector official aLnm;a(ILjava/lang/Object;)Vintermediary method_6585Lnet/minecraft/class_1697;method_6585(ILjava/lang/Object;)Vnamed setLnet/minecraft/util/IntObjectStorage;set(ILjava/lang/Object;)V
-
expandSize
private void expandSize(int updatedSize)- Mappings:
Namespace Name Mixin selector official hLnm;h(I)Vintermediary method_6594Lnet/minecraft/class_1697;method_6594(I)Vnamed expandSizeLnet/minecraft/util/IntObjectStorage;expandSize(I)V
-
moveTo
- Mappings:
Namespace Name Mixin selector official aLnm;a([Lnm$a;)Vintermediary method_6586Lnet/minecraft/class_1697;method_6586([Lnet/minecraft/class_1697$class_1698;)Vnamed moveToLnet/minecraft/util/IntObjectStorage;moveTo([Lnet/minecraft/util/IntObjectStorage$Entry;)V
-
remove
- Mappings:
Namespace Name Mixin selector official dLnm;d(I)Ljava/lang/Object;intermediary method_6590Lnet/minecraft/class_1697;method_6590(I)Ljava/lang/Object;named removeLnet/minecraft/util/IntObjectStorage;remove(I)Ljava/lang/Object;
-
removeEntry
- Mappings:
Namespace Name Mixin selector official eLnm;e(I)Lnm$a;intermediary method_6591Lnet/minecraft/class_1697;method_6591(I)Lnet/minecraft/class_1697$class_1698;named removeEntryLnet/minecraft/util/IntObjectStorage;removeEntry(I)Lnet/minecraft/util/IntObjectStorage$Entry;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official cLnm;c()Vintermediary method_6588Lnet/minecraft/class_1697;method_6588()Vnamed clearLnet/minecraft/util/IntObjectStorage;clear()V
-
insert
- Mappings:
Namespace Name Mixin selector official aLnm;a(IILjava/lang/Object;I)Vintermediary method_6584Lnet/minecraft/class_1697;method_6584(IILjava/lang/Object;I)Vnamed insertLnet/minecraft/util/IntObjectStorage;insert(IILjava/lang/Object;I)V
-