Class LevelPrioritizedQueue<T>

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

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

    • LEVEL_COUNT

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

      private final List<Long2ObjectLinkedOpenHashMap<List<Optional<T>>>> levelToPosToElements
      Mappings:
      Namespace Name Mixin selector
      official b Laid;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 Laid;c:I
      intermediary field_17244 Lnet/minecraft/class_3899;field_17244:I
      named firstNonEmptyLevel Lnet/minecraft/server/world/LevelPrioritizedQueue;firstNonEmptyLevel:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official d Laid;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

      private final LongSet blockingChunks
      Mappings:
      Namespace Name Mixin selector
      official e Laid;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 Laid;f:I
      intermediary field_17445 Lnet/minecraft/class_3899;field_17445:I
      named maxBlocking Lnet/minecraft/server/world/LevelPrioritizedQueue;maxBlocking:I
  • Constructor Details

    • LevelPrioritizedQueue

      public LevelPrioritizedQueue(String name, int maxSize)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laid;<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

      protected void updateLevel(int fromLevel, ChunkPos pos, int toLevel)
      Mappings:
      Namespace Name Mixin selector
      official a Laid;a(ILclp;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

      protected void add(Optional<T> element, long pos, int level)
      Mappings:
      Namespace Name Mixin selector
      official a Laid;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 Laid;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

      private Runnable createBlockingAdder(long pos)
      Mappings:
      Namespace Name Mixin selector
      official a Laid;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

      @Nullable public @Nullable Stream<com.mojang.datafixers.util.Either<T,Runnable>> poll()
      Mappings:
      Namespace Name Mixin selector
      official a Laid;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;
    • hasQueuedElement

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

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

      LongSet getBlockingChunks()
      Mappings:
      Namespace Name Mixin selector
      official c Laid;c()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;