Class LevelPrioritizedQueue<T>

java.lang.Object
net.minecraft.server.world.LevelPrioritizedQueue<T>

public class LevelPrioritizedQueue<T> extends Object
Mappings:
Namespace Name
named net/minecraft/server/world/LevelPrioritizedQueue
intermediary net/minecraft/class_3899
official aqc
  • Field Details

    • LEVEL_COUNT

      public static final int LEVEL_COUNT
      Mappings:
      Namespace Name Mixin selector
      named LEVEL_COUNT Lnet/minecraft/server/world/LevelPrioritizedQueue;LEVEL_COUNT:I
      intermediary field_17241 Lnet/minecraft/class_3899;field_17241:I
      official a Laqc;a:I
    • levelToPosToElements

      private final List<Long2ObjectLinkedOpenHashMap<List<Optional<T>>>> levelToPosToElements
      Mappings:
      Namespace Name Mixin selector
      named levelToPosToElements Lnet/minecraft/server/world/LevelPrioritizedQueue;levelToPosToElements:Ljava/util/List;
      intermediary field_17243 Lnet/minecraft/class_3899;field_17243:Ljava/util/List;
      official b Laqc;b:Ljava/util/List;
    • firstNonEmptyLevel

      private volatile int firstNonEmptyLevel
      Mappings:
      Namespace Name Mixin selector
      named firstNonEmptyLevel Lnet/minecraft/server/world/LevelPrioritizedQueue;firstNonEmptyLevel:I
      intermediary field_17244 Lnet/minecraft/class_3899;field_17244:I
      official c Laqc;c:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/server/world/LevelPrioritizedQueue;name:Ljava/lang/String;
      intermediary field_17247 Lnet/minecraft/class_3899;field_17247:Ljava/lang/String;
      official d Laqc;d:Ljava/lang/String;
    • blockingChunks

      private final LongSet blockingChunks
      Mappings:
      Namespace Name Mixin selector
      named blockingChunks Lnet/minecraft/server/world/LevelPrioritizedQueue;blockingChunks:Lit/unimi/dsi/fastutil/longs/LongSet;
      intermediary field_17444 Lnet/minecraft/class_3899;field_17444:Lit/unimi/dsi/fastutil/longs/LongSet;
      official e Laqc;e:Lit/unimi/dsi/fastutil/longs/LongSet;
    • maxBlocking

      private final int maxBlocking
      Mappings:
      Namespace Name Mixin selector
      named maxBlocking Lnet/minecraft/server/world/LevelPrioritizedQueue;maxBlocking:I
      intermediary field_17445 Lnet/minecraft/class_3899;field_17445:I
      official f Laqc;f:I
  • Constructor Details

    • LevelPrioritizedQueue

      public LevelPrioritizedQueue(String name, int maxSize)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/world/LevelPrioritizedQueue;<init>(Ljava/lang/String;I)V
      intermediary <init> Lnet/minecraft/class_3899;<init>(Ljava/lang/String;I)V
      official <init> Laqc;<init>(Ljava/lang/String;I)V
  • Method Details

    • updateLevel

      protected void updateLevel(int fromLevel, ChunkPos pos, int toLevel)
      Mappings:
      Namespace Name Mixin selector
      named updateLevel Lnet/minecraft/server/world/LevelPrioritizedQueue;updateLevel(ILnet/minecraft/util/math/ChunkPos;I)V
      intermediary method_17272 Lnet/minecraft/class_3899;method_17272(ILnet/minecraft/class_1923;I)V
      official a Laqc;a(ILdcb;I)V
    • add

      protected void add(Optional<T> element, long pos, int level)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/server/world/LevelPrioritizedQueue;add(Ljava/util/Optional;JI)V
      intermediary method_17274 Lnet/minecraft/class_3899;method_17274(Ljava/util/Optional;JI)V
      official a Laqc;a(Ljava/util/Optional;JI)V
    • remove

      protected void remove(long pos, boolean removeElement)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/server/world/LevelPrioritizedQueue;remove(JZ)V
      intermediary method_17609 Lnet/minecraft/class_3899;method_17609(JZ)V
      official a Laqc;a(JZ)V
    • createBlockingAdder

      private Runnable createBlockingAdder(long pos)
      Mappings:
      Namespace Name Mixin selector
      named createBlockingAdder Lnet/minecraft/server/world/LevelPrioritizedQueue;createBlockingAdder(J)Ljava/lang/Runnable;
      intermediary method_17607 Lnet/minecraft/class_3899;method_17607(J)Ljava/lang/Runnable;
      official a Laqc;a(J)Ljava/lang/Runnable;
    • poll

      @Nullable public @Nullable Stream<com.mojang.datafixers.util.Either<T,Runnable>> poll()
      Mappings:
      Namespace Name Mixin selector
      named poll Lnet/minecraft/server/world/LevelPrioritizedQueue;poll()Ljava/util/stream/Stream;
      intermediary method_17606 Lnet/minecraft/class_3899;method_17606()Ljava/util/stream/Stream;
      official a Laqc;a()Ljava/util/stream/Stream;
    • hasQueuedElement

      public boolean hasQueuedElement()
      Mappings:
      Namespace Name Mixin selector
      named hasQueuedElement Lnet/minecraft/server/world/LevelPrioritizedQueue;hasQueuedElement()Z
      intermediary method_39993 Lnet/minecraft/class_3899;method_39993()Z
      official b Laqc;b()Z
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getBlockingChunks

      LongSet getBlockingChunks()
      Mappings:
      Namespace Name Mixin selector
      named getBlockingChunks Lnet/minecraft/server/world/LevelPrioritizedQueue;getBlockingChunks()Lit/unimi/dsi/fastutil/longs/LongSet;
      intermediary method_21679 Lnet/minecraft/class_3899;method_21679()Lit/unimi/dsi/fastutil/longs/LongSet;
      official c Laqc;c()Lit/unimi/dsi/fastutil/longs/LongSet;