Class LongObjectStorage<V>

java.lang.Object
net.minecraft.util.LongObjectStorage<V>

public class LongObjectStorage<V>
extends Object
Mappings:
Namespace Name
official nq
intermediary net/minecraft/class_1701
named net/minecraft/util/LongObjectStorage
  • Field Details

    • entries

      private transient LongObjectStorage.Entry<V>[] entries
      Mappings:
      Namespace Name Mixin selector
      official a Lnq;a:[Lnq$a;
      intermediary field_7138 Lnet/minecraft/class_1701;field_7138:[Lnet/minecraft/class_1701$class_1702;
      named entries Lnet/minecraft/util/LongObjectStorage;entries:[Lnet/minecraft/util/LongObjectStorage$Entry;
    • usedEntriesCount

      private transient int usedEntriesCount
      Mappings:
      Namespace Name Mixin selector
      official b Lnq;b:I
      intermediary field_7139 Lnet/minecraft/class_1701;field_7139:I
      named usedEntriesCount Lnet/minecraft/util/LongObjectStorage;usedEntriesCount:I
    • entriesMask

      private int entriesMask
      Mappings:
      Namespace Name Mixin selector
      official c Lnq;c:I
      intermediary field_7140 Lnet/minecraft/class_1701;field_7140:I
      named entriesMask Lnet/minecraft/util/LongObjectStorage;entriesMask:I
    • growthLimit

      private int growthLimit
      Mappings:
      Namespace Name Mixin selector
      official d Lnq;d:I
      intermediary field_7141 Lnet/minecraft/class_1701;field_7141:I
      named growthLimit Lnet/minecraft/util/LongObjectStorage;growthLimit:I
    • growthFactor

      private final float growthFactor
      Mappings:
      Namespace Name Mixin selector
      official e Lnq;e:F
      intermediary field_7142 Lnet/minecraft/class_1701;field_7142:F
      named growthFactor Lnet/minecraft/util/LongObjectStorage;growthFactor:F
    • size

      private transient volatile int size
      Mappings:
      Namespace Name Mixin selector
      official f Lnq;f:I
      intermediary field_7143 Lnet/minecraft/class_1701;field_7143:I
      named size Lnet/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 g Lnq;g(J)I
      intermediary method_6615 Lnet/minecraft/class_1701;method_6615(J)I
      named hash Lnet/minecraft/util/LongObjectStorage;hash(J)I
    • hash

      private static int hash​(int i)
      Mappings:
      Namespace Name Mixin selector
      official a Lnq;a(I)I
      intermediary method_6603 Lnet/minecraft/class_1701;method_6603(I)I
      named hash Lnet/minecraft/util/LongObjectStorage;hash(I)I
    • getEntryIndex

      private static int getEntryIndex​(int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official a Lnq;a(II)I
      intermediary method_6604 Lnet/minecraft/class_1701;method_6604(II)I
      named getEntryIndex Lnet/minecraft/util/LongObjectStorage;getEntryIndex(II)I
    • getUsedEntriesCount

      public int getUsedEntriesCount()
      Mappings:
      Namespace Name Mixin selector
      official a Lnq;a()I
      intermediary method_6602 Lnet/minecraft/class_1701;method_6602()I
      named getUsedEntriesCount Lnet/minecraft/util/LongObjectStorage;getUsedEntriesCount()I
    • get

      public V get​(long key)
      Mappings:
      Namespace Name Mixin selector
      official a Lnq;a(J)Ljava/lang/Object;
      intermediary method_6606 Lnet/minecraft/class_1701;method_6606(J)Ljava/lang/Object;
      named get Lnet/minecraft/util/LongObjectStorage;get(J)Ljava/lang/Object;
    • contains

      public boolean contains​(long key)
      Mappings:
      Namespace Name Mixin selector
      official b Lnq;b(J)Z
      intermediary method_6610 Lnet/minecraft/class_1701;method_6610(J)Z
      named contains Lnet/minecraft/util/LongObjectStorage;contains(J)Z
    • getEntry

      final LongObjectStorage.Entry<V> getEntry​(long key)
      Mappings:
      Namespace Name Mixin selector
      official c Lnq;c(J)Lnq$a;
      intermediary method_6611 Lnet/minecraft/class_1701;method_6611(J)Lnet/minecraft/class_1701$class_1702;
      named getEntry Lnet/minecraft/util/LongObjectStorage;getEntry(J)Lnet/minecraft/util/LongObjectStorage$Entry;
    • set

      public void set​(long key, V value)
      Mappings:
      Namespace Name Mixin selector
      official a Lnq;a(JLjava/lang/Object;)V
      intermediary method_6607 Lnet/minecraft/class_1701;method_6607(JLjava/lang/Object;)V
      named set Lnet/minecraft/util/LongObjectStorage;set(JLjava/lang/Object;)V
    • expand

      private void expand​(int newSize)
      Mappings:
      Namespace Name Mixin selector
      official b Lnq;b(I)V
      intermediary method_6609 Lnet/minecraft/class_1701;method_6609(I)V
      named expand Lnet/minecraft/util/LongObjectStorage;expand(I)V
    • copyToNewEntries

      private void copyToNewEntries​(LongObjectStorage.Entry<V>[] newEntries)
      Mappings:
      Namespace Name Mixin selector
      official a Lnq;a([Lnq$a;)V
      intermediary method_6608 Lnet/minecraft/class_1701;method_6608([Lnet/minecraft/class_1701$class_1702;)V
      named copyToNewEntries Lnet/minecraft/util/LongObjectStorage;copyToNewEntries([Lnet/minecraft/util/LongObjectStorage$Entry;)V
    • remove

      public V remove​(long key)
      Mappings:
      Namespace Name Mixin selector
      official d Lnq;d(J)Ljava/lang/Object;
      intermediary method_6612 Lnet/minecraft/class_1701;method_6612(J)Ljava/lang/Object;
      named remove Lnet/minecraft/util/LongObjectStorage;remove(J)Ljava/lang/Object;
    • removeEntry

      final LongObjectStorage.Entry<V> removeEntry​(long key)
      Mappings:
      Namespace Name Mixin selector
      official e Lnq;e(J)Lnq$a;
      intermediary method_6613 Lnet/minecraft/class_1701;method_6613(J)Lnet/minecraft/class_1701$class_1702;
      named removeEntry Lnet/minecraft/util/LongObjectStorage;removeEntry(J)Lnet/minecraft/util/LongObjectStorage$Entry;
    • insert

      private void insert​(int hash, long key, V value, int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lnq;a(IJLjava/lang/Object;I)V
      intermediary method_6605 Lnet/minecraft/class_1701;method_6605(IJLjava/lang/Object;I)V
      named insert Lnet/minecraft/util/LongObjectStorage;insert(IJLjava/lang/Object;I)V