Class LinkedBlockPosHashSet.Storage

All Implemented Interfaces:
Function<Long,​Long>, Hash, Long2LongFunction, Long2LongMap, Long2LongSortedMap, Serializable, Cloneable, Function<Long,​Long>, LongUnaryOperator, Map<Long,​Long>, SortedMap<Long,​Long>
Enclosing class:
LinkedBlockPosHashSet

protected static class LinkedBlockPosHashSet.Storage extends Long2LongLinkedOpenHashMap
Represents a three-dimensional mapping from a block position to a bitset of values set at that position.
See Also:
Serialized Form
Mappings:
Namespace Name
official den$a
intermediary net/minecraft/class_6136$class_6137
named net/minecraft/util/collection/LinkedBlockPosHashSet$Storage
  • Field Details

    • STARTING_OFFSET

      private static final int STARTING_OFFSET
      Mappings:
      Namespace Name Mixin selector
      official a Lden$a;a:I
      intermediary field_31716 Lnet/minecraft/class_6136$class_6137;field_31716:I
      named STARTING_OFFSET Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;STARTING_OFFSET:I
    • HORIZONTAL_COLUMN_BIT_SEPARATION

      private static final int HORIZONTAL_COLUMN_BIT_SEPARATION
      Mappings:
      Namespace Name Mixin selector
      official b Lden$a;b:I
      intermediary field_31717 Lnet/minecraft/class_6136$class_6137;field_31717:I
      named HORIZONTAL_COLUMN_BIT_SEPARATION Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;HORIZONTAL_COLUMN_BIT_SEPARATION:I
    • FIELD_SPACING

      private static final int FIELD_SPACING
      Mappings:
      Namespace Name Mixin selector
      official c Lden$a;c:I
      intermediary field_31718 Lnet/minecraft/class_6136$class_6137;field_31718:I
      named FIELD_SPACING Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;FIELD_SPACING:I
    • Y_BIT_OFFSET

      private static final int Y_BIT_OFFSET
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Lden$a;d:I
      intermediary field_31719 Lnet/minecraft/class_6136$class_6137;field_31719:I
      named Y_BIT_OFFSET Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;Y_BIT_OFFSET:I
    • X_BIT_OFFSET

      private static final int X_BIT_OFFSET
      Mappings:
      Namespace Name Mixin selector
      official e Lden$a;e:I
      intermediary field_31720 Lnet/minecraft/class_6136$class_6137;field_31720:I
      named X_BIT_OFFSET Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;X_BIT_OFFSET:I
    • Z_BIT_OFFSET

      private static final int Z_BIT_OFFSET
      Mappings:
      Namespace Name Mixin selector
      official g Lden$a;g:I
      intermediary field_31721 Lnet/minecraft/class_6136$class_6137;field_31721:I
      named Z_BIT_OFFSET Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;Z_BIT_OFFSET:I
    • MAX_POSITION

      private static final long MAX_POSITION
      Mappings:
      Namespace Name Mixin selector
      official h Lden$a;h:J
      intermediary field_31722 Lnet/minecraft/class_6136$class_6137;field_31722:J
      named MAX_POSITION Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;MAX_POSITION:J
    • lastWrittenIndex

      private int lastWrittenIndex
      Mappings:
      Namespace Name Mixin selector
      official i Lden$a;i:I
      intermediary field_31723 Lnet/minecraft/class_6136$class_6137;field_31723:I
      named lastWrittenIndex Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;lastWrittenIndex:I
    • lastWrittenKey

      private long lastWrittenKey
      Mappings:
      Namespace Name Mixin selector
      official j Lden$a;j:J
      intermediary field_31724 Lnet/minecraft/class_6136$class_6137;field_31724:J
      named lastWrittenKey Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;lastWrittenKey:J
    • expectedSize

      private final int expectedSize
      Mappings:
      Namespace Name Mixin selector
      official k Lden$a;k:I
      intermediary field_31725 Lnet/minecraft/class_6136$class_6137;field_31725:I
      named expectedSize Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;expectedSize:I
  • Constructor Details

    • Storage

      public Storage(int expectedSize, float loadFactor)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lden$a;<init>(IF)V
      intermediary <init> Lnet/minecraft/class_6136$class_6137;<init>(IF)V
      named <init> Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;<init>(IF)V
  • Method Details

    • getKey

      static long getKey(long posLong)
      Converts a individual position into a key representing the 2x cube region containing that position.
      Mappings:
      Namespace Name Mixin selector
      official a Lden$a;a(J)J
      intermediary method_35483 Lnet/minecraft/class_6136$class_6137;method_35483(J)J
      named getKey Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;getKey(J)J
    • getBlockOffset

      static int getBlockOffset(long posLong)
      Gets a position's index relative to its containing 2x cube region
      Mappings:
      Namespace Name Mixin selector
      official b Lden$a;b(J)I
      intermediary method_35486 Lnet/minecraft/class_6136$class_6137;method_35486(J)I
      named getBlockOffset Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;getBlockOffset(J)I
    • getBlockPosLong

      static long getBlockPosLong(long key, int valueLength)
      Mappings:
      Namespace Name Mixin selector
      official a Lden$a;a(JI)J
      intermediary method_35484 Lnet/minecraft/class_6136$class_6137;method_35484(JI)J
      named getBlockPosLong Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;getBlockPosLong(JI)J
    • add

      public boolean add(long posLong)
      Ensures that this collection contains the specified element (optional operation).
      See Also:
      Collection.add(Object)
      Mappings:
      Namespace Name Mixin selector
      official c Lden$a;c(J)Z
      intermediary method_35487 Lnet/minecraft/class_6136$class_6137;method_35487(J)Z
      named add Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;add(J)Z
    • setBits

      private boolean setBits(int index, long mask)
      Sets flags within a specific 2x cubed region represented by index.
      Parameters:
      index - zero-based index of a 2x cubed area
      mask - mask of bits to set
      Returns:
      true if the map already contained set bits for the indicated mask (i.e. an overlap occurred)
      Mappings:
      Namespace Name Mixin selector
      official a Lden$a;a(IJ)Z
      intermediary method_35482 Lnet/minecraft/class_6136$class_6137;method_35482(IJ)Z
      named setBits Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;setBits(IJ)Z
    • rem

      public boolean rem(long posLong)
      Removes a block position from this map.
      Mappings:
      Namespace Name Mixin selector
      official d Lden$a;d(J)Z
      intermediary method_35488 Lnet/minecraft/class_6136$class_6137;method_35488(J)Z
      named rem Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;rem(J)Z
    • unsetBits

      private boolean unsetBits(long mask)
      Unsets flags within the last 2x cubed region contained within this map.

      This is equivalent to the call unsetBitsAt(this.n, mask)

      Returns:
      true if the collection was changed as a result of this call
      Mappings:
      Namespace Name Mixin selector
      official e Lden$a;e(J)Z
      intermediary method_35489 Lnet/minecraft/class_6136$class_6137;method_35489(J)Z
      named unsetBits Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;unsetBits(J)Z
    • unsetBitsAt

      private boolean unsetBitsAt(int index, long mask)
      Unsets flags within a specific 2x cubed region contained within this map.
      Returns:
      true if the collection was changed as a result of this call
      Mappings:
      Namespace Name Mixin selector
      official b Lden$a;b(IJ)Z
      intermediary method_35485 Lnet/minecraft/class_6136$class_6137;method_35485(IJ)Z
      named unsetBitsAt Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;unsetBitsAt(IJ)Z
    • removeFirstLong

      public long removeFirstLong()
      Overrides:
      removeFirstLong in class Long2LongLinkedOpenHashMap
      Mappings:
      Namespace Name Mixin selector
      official a Lden$a;a()J
      intermediary method_35481 Lnet/minecraft/class_6136$class_6137;method_35481()J
      named removeFirstLong Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;removeFirstLong()J
    • rehash

      protected void rehash(int newN)
      Overrides:
      rehash in class Long2LongLinkedOpenHashMap
      Mappings:
      Namespace Name Mixin selector
      official rehash Lden$a;rehash(I)V
      intermediary rehash Lnet/minecraft/class_6136$class_6137;rehash(I)V
      named rehash Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;rehash(I)V