Package net.minecraft.util.collection
Class LinkedBlockPosHashSet.Storage
java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLong2LongFunction
it.unimi.dsi.fastutil.longs.AbstractLong2LongMap
it.unimi.dsi.fastutil.longs.AbstractLong2LongSortedMap
it.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMap
net.minecraft.util.collection.LinkedBlockPosHashSet.Storage
- All Implemented Interfaces:
- Function<Long,,- Long> - Hash,- Long2LongFunction,- Long2LongMap,- Long2LongSortedMap,- Serializable,- Cloneable,- Function<Long,,- Long> - LongUnaryOperator,- Map<Long,,- Long> - SequencedMap<Long,,- Long> - SortedMap<Long,- Long> 
- Enclosing class:
- LinkedBlockPosHashSet
Represents a three-dimensional mapping from a block position to a bitset
 of values set at that position.
- See Also:
- Mappings:
- Namespace - Name - named - net/minecraft/util/collection/LinkedBlockPosHashSet$Storage- intermediary - net/minecraft/class_6136$class_6137- official - esv$a
- 
Nested Class SummaryNested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongSortedMapAbstractLong2LongSortedMap.KeySetIterator, AbstractLong2LongSortedMap.ValuesCollection, AbstractLong2LongSortedMap.ValuesIteratorNested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongMapAbstractLong2LongMap.BasicEntry, AbstractLong2LongMap.BasicEntrySetNested classes/interfaces inherited from interface it.unimi.dsi.fastutil.HashHash.Strategy<K>Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.longs.Long2LongMapLong2LongMap.Entry, Long2LongMap.FastEntrySetNested classes/interfaces inherited from interface it.unimi.dsi.fastutil.longs.Long2LongSortedMapLong2LongSortedMap.FastSortedEntrySet
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate static final intprivate static final intprivate intprivate longprivate static final longprivate static final intprivate static final intprivate static final intprivate static final intFields inherited from class it.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMapcontainsNullKey, entries, f, first, key, keys, last, link, mask, maxFill, minN, n, size, value, valuesFields inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongFunctiondefRetValueFields inherited from interface it.unimi.dsi.fastutil.HashDEFAULT_GROWTH_FACTOR, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, FAST_LOAD_FACTOR, FREE, OCCUPIED, PRIMES, REMOVED, VERY_FAST_LOAD_FACTOR
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanadd(long posLong) Ensures that this collection contains the specified element (optional operation).(package private) static intgetBlockOffset(long posLong) Gets a position's index relative to its containing 2x cube region(package private) static longgetBlockPosLong(long key, int valueLength) (package private) static longgetKey(long posLong) Converts an individual position into a key representing the 2x cube region containing that position.protected voidrehash(int newN) booleanrem(long posLong) Removes a block position from this map.longprivate booleansetBits(int index, long mask) Sets flags within a specific 2x cubed region represented byindex.private booleanunsetBits(long mask) Unsets flags within the last 2x cubed region contained within this map.private booleanunsetBitsAt(int index, long mask) Unsets flags within a specific 2x cubed region contained within this map.Methods inherited from class it.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMapaddTo, clear, clone, comparator, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfPresent, containsKey, containsValue, ensureCapacity, firstLongKey, fixPointers, fixPointers, get, getAndMoveToFirst, getAndMoveToLast, getOrDefault, hashCode, headMap, isEmpty, keySet, lastLongKey, long2LongEntrySet, merge, put, putAll, putAndMoveToFirst, putAndMoveToLast, putIfAbsent, remove, remove, removeLastLong, replace, replace, shiftKeys, size, subMap, tailMap, trim, trim, valuesMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongMapequals, mergeLong, toStringMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongFunctiondefaultReturnValue, defaultReturnValueMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongFunctionandThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShortMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongMapcompute, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, containsKey, containsValue, defaultReturnValue, defaultReturnValue, forEach, get, getOrDefault, merge, mergeLong, mergeLong, put, putIfAbsent, remove, remove, replace, replaceMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongSortedMapentrySet, firstKey, headMap, lastKey, subMap, tailMapMethods inherited from interface java.util.function.LongUnaryOperatorandThen, composeMethods inherited from interface java.util.MapcontainsKey, equals, get, getOrDefault, put, remove, replaceAllMethods inherited from interface java.util.SequencedMapfirstEntry, lastEntry, pollFirstEntry, pollLastEntry, sequencedEntrySet, sequencedKeySet, sequencedValues
- 
Field Details- 
STARTING_OFFSETprivate static final int STARTING_OFFSET- Mappings:
- Namespace - Name - Mixin selector - named - STARTING_OFFSET- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;STARTING_OFFSET:I- intermediary - field_31716- Lnet/minecraft/class_6136$class_6137;field_31716:I- official - a- Lesv$a;a:I
 
- 
HORIZONTAL_COLUMN_BIT_SEPARATIONprivate static final int HORIZONTAL_COLUMN_BIT_SEPARATION- Mappings:
- Namespace - Name - Mixin selector - named - HORIZONTAL_COLUMN_BIT_SEPARATION- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;HORIZONTAL_COLUMN_BIT_SEPARATION:I- intermediary - field_31717- Lnet/minecraft/class_6136$class_6137;field_31717:I- official - b- Lesv$a;b:I
 
- 
FIELD_SPACINGprivate static final int FIELD_SPACING- Mappings:
- Namespace - Name - Mixin selector - named - FIELD_SPACING- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;FIELD_SPACING:I- intermediary - field_31718- Lnet/minecraft/class_6136$class_6137;field_31718:I- official - c- Lesv$a;c:I
 
- 
Y_BIT_OFFSETprivate static final int Y_BIT_OFFSET- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - Y_BIT_OFFSET- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;Y_BIT_OFFSET:I- intermediary - field_31719- Lnet/minecraft/class_6136$class_6137;field_31719:I- official - d- Lesv$a;d:I
 
- 
X_BIT_OFFSETprivate static final int X_BIT_OFFSET- Mappings:
- Namespace - Name - Mixin selector - named - X_BIT_OFFSET- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;X_BIT_OFFSET:I- intermediary - field_31720- Lnet/minecraft/class_6136$class_6137;field_31720:I- official - e- Lesv$a;e:I
 
- 
Z_BIT_OFFSETprivate static final int Z_BIT_OFFSET- Mappings:
- Namespace - Name - Mixin selector - named - Z_BIT_OFFSET- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;Z_BIT_OFFSET:I- intermediary - field_31721- Lnet/minecraft/class_6136$class_6137;field_31721:I- official - g- Lesv$a;g:I
 
- 
MAX_POSITIONprivate static final long MAX_POSITION- Mappings:
- Namespace - Name - Mixin selector - named - MAX_POSITION- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;MAX_POSITION:J- intermediary - field_31722- Lnet/minecraft/class_6136$class_6137;field_31722:J- official - h- Lesv$a;h:J
 
- 
lastWrittenIndexprivate int lastWrittenIndex- Mappings:
- Namespace - Name - Mixin selector - named - lastWrittenIndex- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;lastWrittenIndex:I- intermediary - field_31723- Lnet/minecraft/class_6136$class_6137;field_31723:I- official - i- Lesv$a;i:I
 
- 
lastWrittenKeyprivate long lastWrittenKey- Mappings:
- Namespace - Name - Mixin selector - named - lastWrittenKey- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;lastWrittenKey:J- intermediary - field_31724- Lnet/minecraft/class_6136$class_6137;field_31724:J- official - j- Lesv$a;j:J
 
- 
expectedSizeprivate final int expectedSize- Mappings:
- Namespace - Name - Mixin selector - named - expectedSize- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;expectedSize:I- intermediary - field_31725- Lnet/minecraft/class_6136$class_6137;field_31725:I- official - k- Lesv$a;k:I
 
 
- 
- 
Constructor Details- 
Storagepublic Storage(int expectedSize, float loadFactor) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;<init>(IF)V- intermediary - <init>- Lnet/minecraft/class_6136$class_6137;<init>(IF)V- official - <init>- Lesv$a;<init>(IF)V
 
 
- 
- 
Method Details- 
getKeystatic long getKey(long posLong) Converts an individual position into a key representing the 2x cube region containing that position.- Mappings:
- Namespace - Name - Mixin selector - named - getKey- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;getKey(J)J- intermediary - method_35483- Lnet/minecraft/class_6136$class_6137;method_35483(J)J- official - a- Lesv$a;a(J)J
 
- 
getBlockOffsetstatic int getBlockOffset(long posLong) Gets a position's index relative to its containing 2x cube region- Mappings:
- Namespace - Name - Mixin selector - named - getBlockOffset- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;getBlockOffset(J)I- intermediary - method_35486- Lnet/minecraft/class_6136$class_6137;method_35486(J)I- official - b- Lesv$a;b(J)I
 
- 
getBlockPosLongstatic long getBlockPosLong(long key, int valueLength) - Mappings:
- Namespace - Name - Mixin selector - named - getBlockPosLong- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;getBlockPosLong(JI)J- intermediary - method_35484- Lnet/minecraft/class_6136$class_6137;method_35484(JI)J- official - a- Lesv$a;a(JI)J
 
- 
addpublic boolean add(long posLong) Ensures that this collection contains the specified element (optional operation).- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - add- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;add(J)Z- intermediary - method_35487- Lnet/minecraft/class_6136$class_6137;method_35487(J)Z- official - c- Lesv$a;c(J)Z
 
- 
setBitsprivate boolean setBits(int index, long mask) Sets flags within a specific 2x cubed region represented byindex.- Parameters:
- index- zero-based index of a 2x cubed area
- mask- mask of bits to set
- Returns:
- trueif the map already contained set bits for the indicated mask (i.e. an overlap occurred)
- Mappings:
- Namespace - Name - Mixin selector - named - setBits- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;setBits(IJ)Z- intermediary - method_35482- Lnet/minecraft/class_6136$class_6137;method_35482(IJ)Z- official - a- Lesv$a;a(IJ)Z
 
- 
rempublic boolean rem(long posLong) Removes a block position from this map.- Mappings:
- Namespace - Name - Mixin selector - named - rem- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;rem(J)Z- intermediary - method_35488- Lnet/minecraft/class_6136$class_6137;method_35488(J)Z- official - d- Lesv$a;d(J)Z
 
- 
unsetBitsprivate 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:
- trueif the collection was changed as a result of this call
- Mappings:
- Namespace - Name - Mixin selector - named - unsetBits- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;unsetBits(J)Z- intermediary - method_35489- Lnet/minecraft/class_6136$class_6137;method_35489(J)Z- official - e- Lesv$a;e(J)Z
 
- 
unsetBitsAtprivate boolean unsetBitsAt(int index, long mask) Unsets flags within a specific 2x cubed region contained within this map.- Returns:
- trueif the collection was changed as a result of this call
- Mappings:
- Namespace - Name - Mixin selector - named - unsetBitsAt- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;unsetBitsAt(IJ)Z- intermediary - method_35485- Lnet/minecraft/class_6136$class_6137;method_35485(IJ)Z- official - b- Lesv$a;b(IJ)Z
 
- 
removeFirstLongpublic long removeFirstLong()- Overrides:
- removeFirstLongin class- Long2LongLinkedOpenHashMap
- Mappings:
- Namespace - Name - Mixin selector - named - removeFirstLong- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;removeFirstLong()J- intermediary - method_35481- Lnet/minecraft/class_6136$class_6137;method_35481()J- official - a- Lesv$a;a()J
 
- 
rehashprotected void rehash(int newN) - Overrides:
- rehashin class- Long2LongLinkedOpenHashMap
- Mappings:
- Namespace - Name - Mixin selector - named - rehash- Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;rehash(I)V- intermediary - rehash- Lnet/minecraft/class_6136$class_6137;rehash(I)V- official - rehash- Lesv$a;rehash(I)V
 
 
-