Package net.minecraft.util
Class LongObjectStorage<V>
java.lang.Object
net.minecraft.util.LongObjectStorage<V>
public class LongObjectStorage<V> extends Object
- Mappings:
Namespace Name official nqintermediary net/minecraft/class_1701named net/minecraft/util/LongObjectStorage
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classLongObjectStorage.Entry<V> -
Field Summary
Fields Modifier and Type Field Description private LongObjectStorage.Entry<V>[]entriesprivate intentriesMaskprivate floatgrowthFactorprivate intgrowthLimitprivate intsizeprivate intusedEntriesCount -
Constructor Summary
Constructors Constructor Description LongObjectStorage() -
Method Summary
Modifier and Type Method Description booleancontains(long key)private voidcopyToNewEntries(LongObjectStorage.Entry<V>[] newEntries)private voidexpand(int newSize)Vget(long key)(package private) LongObjectStorage.Entry<V>getEntry(long key)private static intgetEntryIndex(int int2, int int3)intgetUsedEntriesCount()private static inthash(int i)private static inthash(long l)private voidinsert(int hash, long key, V value, int index)Vremove(long key)(package private) LongObjectStorage.Entry<V>removeEntry(long key)voidset(long key, V value)
-
Field Details
-
entries
- Mappings:
Namespace Name Mixin selector official aLnq;a:[Lnq$a;intermediary field_7138Lnet/minecraft/class_1701;field_7138:[Lnet/minecraft/class_1701$class_1702;named entriesLnet/minecraft/util/LongObjectStorage;entries:[Lnet/minecraft/util/LongObjectStorage$Entry;
-
usedEntriesCount
private transient int usedEntriesCount- Mappings:
Namespace Name Mixin selector official bLnq;b:Iintermediary field_7139Lnet/minecraft/class_1701;field_7139:Inamed usedEntriesCountLnet/minecraft/util/LongObjectStorage;usedEntriesCount:I
-
entriesMask
private int entriesMask- Mappings:
Namespace Name Mixin selector official cLnq;c:Iintermediary field_7140Lnet/minecraft/class_1701;field_7140:Inamed entriesMaskLnet/minecraft/util/LongObjectStorage;entriesMask:I
-
growthLimit
private int growthLimit- Mappings:
Namespace Name Mixin selector official dLnq;d:Iintermediary field_7141Lnet/minecraft/class_1701;field_7141:Inamed growthLimitLnet/minecraft/util/LongObjectStorage;growthLimit:I
-
growthFactor
private final float growthFactor- Mappings:
Namespace Name Mixin selector official eLnq;e:Fintermediary field_7142Lnet/minecraft/class_1701;field_7142:Fnamed growthFactorLnet/minecraft/util/LongObjectStorage;growthFactor:F
-
size
private transient volatile int size- Mappings:
Namespace Name Mixin selector official fLnq;f:Iintermediary field_7143Lnet/minecraft/class_1701;field_7143:Inamed sizeLnet/minecraft/util/LongObjectStorage;size:I
-
-
Constructor Details
-
LongObjectStorage
public LongObjectStorage()
-
-
Method Details
-
hash
private static int hash(long l)- Mappings:
Namespace Name Mixin selector official gLnq;g(J)Iintermediary method_6615Lnet/minecraft/class_1701;method_6615(J)Inamed hashLnet/minecraft/util/LongObjectStorage;hash(J)I
-
hash
private static int hash(int i)- Mappings:
Namespace Name Mixin selector official aLnq;a(I)Iintermediary method_6603Lnet/minecraft/class_1701;method_6603(I)Inamed hashLnet/minecraft/util/LongObjectStorage;hash(I)I
-
getEntryIndex
private static int getEntryIndex(int int2, int int3)- Mappings:
Namespace Name Mixin selector official aLnq;a(II)Iintermediary method_6604Lnet/minecraft/class_1701;method_6604(II)Inamed getEntryIndexLnet/minecraft/util/LongObjectStorage;getEntryIndex(II)I
-
getUsedEntriesCount
public int getUsedEntriesCount()- Mappings:
Namespace Name Mixin selector official aLnq;a()Iintermediary method_6602Lnet/minecraft/class_1701;method_6602()Inamed getUsedEntriesCountLnet/minecraft/util/LongObjectStorage;getUsedEntriesCount()I
-
get
- Mappings:
Namespace Name Mixin selector official aLnq;a(J)Ljava/lang/Object;intermediary method_6606Lnet/minecraft/class_1701;method_6606(J)Ljava/lang/Object;named getLnet/minecraft/util/LongObjectStorage;get(J)Ljava/lang/Object;
-
contains
public boolean contains(long key)- Mappings:
Namespace Name Mixin selector official bLnq;b(J)Zintermediary method_6610Lnet/minecraft/class_1701;method_6610(J)Znamed containsLnet/minecraft/util/LongObjectStorage;contains(J)Z
-
getEntry
- Mappings:
Namespace Name Mixin selector official cLnq;c(J)Lnq$a;intermediary method_6611Lnet/minecraft/class_1701;method_6611(J)Lnet/minecraft/class_1701$class_1702;named getEntryLnet/minecraft/util/LongObjectStorage;getEntry(J)Lnet/minecraft/util/LongObjectStorage$Entry;
-
set
- Mappings:
Namespace Name Mixin selector official aLnq;a(JLjava/lang/Object;)Vintermediary method_6607Lnet/minecraft/class_1701;method_6607(JLjava/lang/Object;)Vnamed setLnet/minecraft/util/LongObjectStorage;set(JLjava/lang/Object;)V
-
expand
private void expand(int newSize)- Mappings:
Namespace Name Mixin selector official bLnq;b(I)Vintermediary method_6609Lnet/minecraft/class_1701;method_6609(I)Vnamed expandLnet/minecraft/util/LongObjectStorage;expand(I)V
-
copyToNewEntries
- Mappings:
Namespace Name Mixin selector official aLnq;a([Lnq$a;)Vintermediary method_6608Lnet/minecraft/class_1701;method_6608([Lnet/minecraft/class_1701$class_1702;)Vnamed copyToNewEntriesLnet/minecraft/util/LongObjectStorage;copyToNewEntries([Lnet/minecraft/util/LongObjectStorage$Entry;)V
-
remove
- Mappings:
Namespace Name Mixin selector official dLnq;d(J)Ljava/lang/Object;intermediary method_6612Lnet/minecraft/class_1701;method_6612(J)Ljava/lang/Object;named removeLnet/minecraft/util/LongObjectStorage;remove(J)Ljava/lang/Object;
-
removeEntry
- Mappings:
Namespace Name Mixin selector official eLnq;e(J)Lnq$a;intermediary method_6613Lnet/minecraft/class_1701;method_6613(J)Lnet/minecraft/class_1701$class_1702;named removeEntryLnet/minecraft/util/LongObjectStorage;removeEntry(J)Lnet/minecraft/util/LongObjectStorage$Entry;
-
insert
- Mappings:
Namespace Name Mixin selector official aLnq;a(IJLjava/lang/Object;I)Vintermediary method_6605Lnet/minecraft/class_1701;method_6605(IJLjava/lang/Object;I)Vnamed insertLnet/minecraft/util/LongObjectStorage;insert(IJLjava/lang/Object;I)V
-