Package net.minecraft.server.world
Class LevelPrioritizedQueue<T>
java.lang.Object
net.minecraft.server.world.LevelPrioritizedQueue<T>
public class LevelPrioritizedQueue<T> extends Object
- Mappings:
Namespace Name official aaj
intermediary net/minecraft/class_3899
named net/minecraft/server/world/LevelPrioritizedQueue
-
Field Summary
Fields Modifier and Type Field Description private LongSet
blockingChunks
private int
firstNonEmptyLevel
static int
LEVEL_COUNT
private List<Long2ObjectLinkedOpenHashMap<List<Optional<T>>>>
levelToPosToElements
private int
maxBlocking
private String
name
-
Constructor Summary
Constructors Constructor Description LevelPrioritizedQueue(String name, int maxSize)
-
Method Summary
Modifier and Type Method Description protected void
add(Optional<T> element, long pos, int level)
private Runnable
createBlockingAdder(long pos)
(package private) LongSet
getBlockingChunks()
Stream<com.mojang.datafixers.util.Either<T,Runnable>>
poll()
protected void
remove(long pos, boolean removeElement)
String
toString()
protected void
updateLevel(int fromLevel, ChunkPos pos, int toLevel)
-
Field Details
-
LEVEL_COUNT
public static final int LEVEL_COUNT- Mappings:
Namespace Name Mixin selector official a
Laaj;a:I
intermediary field_17241
Lnet/minecraft/class_3899;field_17241:I
named LEVEL_COUNT
Lnet/minecraft/server/world/LevelPrioritizedQueue;LEVEL_COUNT:I
-
levelToPosToElements
- Mappings:
Namespace Name Mixin selector official b
Laaj;b:Ljava/util/List;
intermediary field_17243
Lnet/minecraft/class_3899;field_17243:Ljava/util/List;
named levelToPosToElements
Lnet/minecraft/server/world/LevelPrioritizedQueue;levelToPosToElements:Ljava/util/List;
-
firstNonEmptyLevel
private volatile int firstNonEmptyLevel- Mappings:
Namespace Name Mixin selector official c
Laaj;c:I
intermediary field_17244
Lnet/minecraft/class_3899;field_17244:I
named firstNonEmptyLevel
Lnet/minecraft/server/world/LevelPrioritizedQueue;firstNonEmptyLevel:I
-
name
- Mappings:
Namespace Name Mixin selector official d
Laaj;d:Ljava/lang/String;
intermediary field_17247
Lnet/minecraft/class_3899;field_17247:Ljava/lang/String;
named name
Lnet/minecraft/server/world/LevelPrioritizedQueue;name:Ljava/lang/String;
-
blockingChunks
- Mappings:
Namespace Name Mixin selector official e
Laaj;e:Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary field_17444
Lnet/minecraft/class_3899;field_17444:Lit/unimi/dsi/fastutil/longs/LongSet;
named blockingChunks
Lnet/minecraft/server/world/LevelPrioritizedQueue;blockingChunks:Lit/unimi/dsi/fastutil/longs/LongSet;
-
maxBlocking
private final int maxBlocking- Mappings:
Namespace Name Mixin selector official f
Laaj;f:I
intermediary field_17445
Lnet/minecraft/class_3899;field_17445:I
named maxBlocking
Lnet/minecraft/server/world/LevelPrioritizedQueue;maxBlocking:I
-
-
Constructor Details
-
LevelPrioritizedQueue
- Mappings:
Namespace Name Mixin selector official <init>
Laaj;<init>(Ljava/lang/String;I)V
intermediary <init>
Lnet/minecraft/class_3899;<init>(Ljava/lang/String;I)V
named <init>
Lnet/minecraft/server/world/LevelPrioritizedQueue;<init>(Ljava/lang/String;I)V
-
-
Method Details
-
updateLevel
- Mappings:
Namespace Name Mixin selector official a
Laaj;a(ILbta;I)V
intermediary method_17272
Lnet/minecraft/class_3899;method_17272(ILnet/minecraft/class_1923;I)V
named updateLevel
Lnet/minecraft/server/world/LevelPrioritizedQueue;updateLevel(ILnet/minecraft/util/math/ChunkPos;I)V
-
add
- Mappings:
Namespace Name Mixin selector official a
Laaj;a(Ljava/util/Optional;JI)V
intermediary method_17274
Lnet/minecraft/class_3899;method_17274(Ljava/util/Optional;JI)V
named add
Lnet/minecraft/server/world/LevelPrioritizedQueue;add(Ljava/util/Optional;JI)V
-
remove
protected void remove(long pos, boolean removeElement)- Mappings:
Namespace Name Mixin selector official a
Laaj;a(JZ)V
intermediary method_17609
Lnet/minecraft/class_3899;method_17609(JZ)V
named remove
Lnet/minecraft/server/world/LevelPrioritizedQueue;remove(JZ)V
-
createBlockingAdder
- Mappings:
Namespace Name Mixin selector official a
Laaj;a(J)Ljava/lang/Runnable;
intermediary method_17607
Lnet/minecraft/class_3899;method_17607(J)Ljava/lang/Runnable;
named createBlockingAdder
Lnet/minecraft/server/world/LevelPrioritizedQueue;createBlockingAdder(J)Ljava/lang/Runnable;
-
poll
- Mappings:
Namespace Name Mixin selector official a
Laaj;a()Ljava/util/stream/Stream;
intermediary method_17606
Lnet/minecraft/class_3899;method_17606()Ljava/util/stream/Stream;
named poll
Lnet/minecraft/server/world/LevelPrioritizedQueue;poll()Ljava/util/stream/Stream;
-
toString
-
getBlockingChunks
LongSet getBlockingChunks()- Mappings:
Namespace Name Mixin selector official b
Laaj;b()Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary method_21679
Lnet/minecraft/class_3899;method_21679()Lit/unimi/dsi/fastutil/longs/LongSet;
named getBlockingChunks
Lnet/minecraft/server/world/LevelPrioritizedQueue;getBlockingChunks()Lit/unimi/dsi/fastutil/longs/LongSet;
-