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$Storageintermediary net/minecraft/class_6136$class_6137official exv$a
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongSortedMap
AbstractLong2LongSortedMap.KeySetIterator, AbstractLong2LongSortedMap.ValuesCollection, AbstractLong2LongSortedMap.ValuesIteratorNested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongMap
AbstractLong2LongMap.BasicEntry, AbstractLong2LongMap.BasicEntrySetNested classes/interfaces inherited from interface it.unimi.dsi.fastutil.Hash
Hash.Strategy<K>Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.longs.Long2LongMap
Long2LongMap.Entry, Long2LongMap.FastEntrySetNested classes/interfaces inherited from interface it.unimi.dsi.fastutil.longs.Long2LongSortedMap
Long2LongSortedMap.FastSortedEntrySet -
Field Summary
FieldsModifier 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.Long2LongLinkedOpenHashMap
containsNullKey, entries, f, first, key, keys, last, link, mask, maxFill, minN, n, size, value, valuesFields inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongFunction
defRetValueFields inherited from interface it.unimi.dsi.fastutil.Hash
DEFAULT_GROWTH_FACTOR, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, FAST_LOAD_FACTOR, FREE, OCCUPIED, PRIMES, REMOVED, VERY_FAST_LOAD_FACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Long2LongLinkedOpenHashMap
addTo, 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.AbstractLong2LongMap
equals, mergeLong, toStringMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongFunction
defaultReturnValue, defaultReturnValueMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongFunction
andThen, 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.Long2LongMap
compute, 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.Long2LongSortedMap
entrySet, firstKey, headMap, lastKey, subMap, tailMapMethods inherited from interface java.util.function.LongUnaryOperator
andThen, composeMethods inherited from interface java.util.Map
containsKey, equals, get, getOrDefault, put, remove, replaceAllMethods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry, sequencedEntrySet, sequencedKeySet, sequencedValues
-
Field Details
-
STARTING_OFFSET
private static final int STARTING_OFFSET- Mappings:
Namespace Name Mixin selector named STARTING_OFFSETLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;STARTING_OFFSET:Iintermediary field_31716Lnet/minecraft/class_6136$class_6137;field_31716:Iofficial aLexv$a;a:I
-
HORIZONTAL_COLUMN_BIT_SEPARATION
private static final int HORIZONTAL_COLUMN_BIT_SEPARATION- Mappings:
Namespace Name Mixin selector named HORIZONTAL_COLUMN_BIT_SEPARATIONLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;HORIZONTAL_COLUMN_BIT_SEPARATION:Iintermediary field_31717Lnet/minecraft/class_6136$class_6137;field_31717:Iofficial bLexv$a;b:I
-
FIELD_SPACING
private static final int FIELD_SPACING- Mappings:
Namespace Name Mixin selector named FIELD_SPACINGLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;FIELD_SPACING:Iintermediary field_31718Lnet/minecraft/class_6136$class_6137;field_31718:Iofficial cLexv$a;c:I
-
Y_BIT_OFFSET
private static final int Y_BIT_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector named Y_BIT_OFFSETLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;Y_BIT_OFFSET:Iintermediary field_31719Lnet/minecraft/class_6136$class_6137;field_31719:Iofficial dLexv$a;d:I
-
X_BIT_OFFSET
private static final int X_BIT_OFFSET- Mappings:
Namespace Name Mixin selector named X_BIT_OFFSETLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;X_BIT_OFFSET:Iintermediary field_31720Lnet/minecraft/class_6136$class_6137;field_31720:Iofficial eLexv$a;e:I
-
Z_BIT_OFFSET
private static final int Z_BIT_OFFSET- Mappings:
Namespace Name Mixin selector named Z_BIT_OFFSETLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;Z_BIT_OFFSET:Iintermediary field_31721Lnet/minecraft/class_6136$class_6137;field_31721:Iofficial gLexv$a;g:I
-
MAX_POSITION
private static final long MAX_POSITION- Mappings:
Namespace Name Mixin selector named MAX_POSITIONLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;MAX_POSITION:Jintermediary field_31722Lnet/minecraft/class_6136$class_6137;field_31722:Jofficial hLexv$a;h:J
-
lastWrittenIndex
private int lastWrittenIndex- Mappings:
Namespace Name Mixin selector named lastWrittenIndexLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;lastWrittenIndex:Iintermediary field_31723Lnet/minecraft/class_6136$class_6137;field_31723:Iofficial iLexv$a;i:I
-
lastWrittenKey
private long lastWrittenKey- Mappings:
Namespace Name Mixin selector named lastWrittenKeyLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;lastWrittenKey:Jintermediary field_31724Lnet/minecraft/class_6136$class_6137;field_31724:Jofficial jLexv$a;j:J
-
expectedSize
private final int expectedSize- Mappings:
Namespace Name Mixin selector named expectedSizeLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;expectedSize:Iintermediary field_31725Lnet/minecraft/class_6136$class_6137;field_31725:Iofficial kLexv$a;k:I
-
-
Constructor Details
-
Storage
public Storage(int expectedSize, float loadFactor) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;<init>(IF)Vintermediary <init>Lnet/minecraft/class_6136$class_6137;<init>(IF)Vofficial <init>Lexv$a;<init>(IF)V
-
-
Method Details
-
getKey
static 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 getKeyLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;getKey(J)Jintermediary method_35483Lnet/minecraft/class_6136$class_6137;method_35483(J)Jofficial aLexv$a;a(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 named getBlockOffsetLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;getBlockOffset(J)Iintermediary method_35486Lnet/minecraft/class_6136$class_6137;method_35486(J)Iofficial bLexv$a;b(J)I
-
getBlockPosLong
static long getBlockPosLong(long key, int valueLength) - Mappings:
Namespace Name Mixin selector named getBlockPosLongLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;getBlockPosLong(JI)Jintermediary method_35484Lnet/minecraft/class_6136$class_6137;method_35484(JI)Jofficial aLexv$a;a(JI)J
-
add
public boolean add(long posLong) Ensures that this collection contains the specified element (optional operation).- See Also:
- Mappings:
Namespace Name Mixin selector named addLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;add(J)Zintermediary method_35487Lnet/minecraft/class_6136$class_6137;method_35487(J)Zofficial cLexv$a;c(J)Z
-
setBits
private 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 areamask- 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 setBitsLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;setBits(IJ)Zintermediary method_35482Lnet/minecraft/class_6136$class_6137;method_35482(IJ)Zofficial aLexv$a;a(IJ)Z
-
rem
public boolean rem(long posLong) Removes a block position from this map.- Mappings:
Namespace Name Mixin selector named remLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;rem(J)Zintermediary method_35488Lnet/minecraft/class_6136$class_6137;method_35488(J)Zofficial dLexv$a;d(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:
trueif the collection was changed as a result of this call- Mappings:
Namespace Name Mixin selector named unsetBitsLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;unsetBits(J)Zintermediary method_35489Lnet/minecraft/class_6136$class_6137;method_35489(J)Zofficial eLexv$a;e(J)Z
-
unsetBitsAt
private 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 unsetBitsAtLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;unsetBitsAt(IJ)Zintermediary method_35485Lnet/minecraft/class_6136$class_6137;method_35485(IJ)Zofficial bLexv$a;b(IJ)Z
-
removeFirstLong
public long removeFirstLong()- Overrides:
removeFirstLongin classLong2LongLinkedOpenHashMap- Mappings:
Namespace Name Mixin selector named removeFirstLongLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;removeFirstLong()Jintermediary method_35481Lnet/minecraft/class_6136$class_6137;method_35481()Jofficial aLexv$a;a()J
-
rehash
protected void rehash(int newN) - Overrides:
rehashin classLong2LongLinkedOpenHashMap- Mappings:
Namespace Name Mixin selector named rehashLnet/minecraft/util/collection/LinkedBlockPosHashSet$Storage;rehash(I)Vintermediary rehashLnet/minecraft/class_6136$class_6137;rehash(I)Vofficial rehashLexv$a;rehash(I)V
-