Class ServerLightingProvider

java.lang.Object
net.minecraft.world.chunk.light.LightingProvider
net.minecraft.server.world.ServerLightingProvider
All Implemented Interfaces:
AutoCloseable, LightingView

public class ServerLightingProvider extends LightingProvider implements AutoCloseable
Mappings:
Namespace Name
official akt
intermediary net/minecraft/class_3227
named net/minecraft/server/world/ServerLightingProvider
  • Field Details

    • field_44692

      public static final int field_44692
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lakt;a:I
      intermediary field_44692 Lnet/minecraft/class_3227;field_44692:I
      named field_44692 Lnet/minecraft/server/world/ServerLightingProvider;field_44692:I
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official d Lakt;d:Lorg/slf4j/Logger;
      intermediary field_14020 Lnet/minecraft/class_3227;field_14020:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/server/world/ServerLightingProvider;LOGGER:Lorg/slf4j/Logger;
    • processor

      private final TaskExecutor<Runnable> processor
      Mappings:
      Namespace Name Mixin selector
      official e Lakt;e:Lbfr;
      intermediary field_17255 Lnet/minecraft/class_3227;field_17255:Lnet/minecraft/class_3846;
      named processor Lnet/minecraft/server/world/ServerLightingProvider;processor:Lnet/minecraft/util/thread/TaskExecutor;
    • pendingTasks

      private final ObjectList<com.mojang.datafixers.util.Pair<ServerLightingProvider.Stage,Runnable>> pendingTasks
      Mappings:
      Namespace Name Mixin selector
      official f Lakt;f:Lit/unimi/dsi/fastutil/objects/ObjectList;
      intermediary field_17256 Lnet/minecraft/class_3227;field_17256:Lit/unimi/dsi/fastutil/objects/ObjectList;
      named pendingTasks Lnet/minecraft/server/world/ServerLightingProvider;pendingTasks:Lit/unimi/dsi/fastutil/objects/ObjectList;
    • chunkStorage

      private final ThreadedAnvilChunkStorage chunkStorage
      Mappings:
      Namespace Name Mixin selector
      official g Lakt;g:Laka;
      intermediary field_17257 Lnet/minecraft/class_3227;field_17257:Lnet/minecraft/class_3898;
      named chunkStorage Lnet/minecraft/server/world/ServerLightingProvider;chunkStorage:Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;
    • executor

      Mappings:
      Namespace Name Mixin selector
      official h Lakt;h:Lbfq;
      intermediary field_17259 Lnet/minecraft/class_3227;field_17259:Lnet/minecraft/class_3906;
      named executor Lnet/minecraft/server/world/ServerLightingProvider;executor:Lnet/minecraft/util/thread/MessageListener;
    • taskBatchSize

      private final int taskBatchSize
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lakt;i:I
      intermediary field_17260 Lnet/minecraft/class_3227;field_17260:I
      named taskBatchSize Lnet/minecraft/server/world/ServerLightingProvider;taskBatchSize:I
    • ticking

      private final AtomicBoolean ticking
      Mappings:
      Namespace Name Mixin selector
      official j Lakt;j:Ljava/util/concurrent/atomic/AtomicBoolean;
      intermediary field_18812 Lnet/minecraft/class_3227;field_18812:Ljava/util/concurrent/atomic/AtomicBoolean;
      named ticking Lnet/minecraft/server/world/ServerLightingProvider;ticking:Ljava/util/concurrent/atomic/AtomicBoolean;
  • Constructor Details

    • ServerLightingProvider

      public ServerLightingProvider(ChunkProvider chunkProvider, ThreadedAnvilChunkStorage chunkStorage, boolean hasBlockLight, TaskExecutor<Runnable> processor, MessageListener<ChunkTaskPrioritySystem.Task<Runnable>> executor)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lakt;<init>(Ldht;Laka;ZLbfr;Lbfq;)V
      intermediary <init> Lnet/minecraft/class_3227;<init>(Lnet/minecraft/class_2823;Lnet/minecraft/class_3898;ZLnet/minecraft/class_3846;Lnet/minecraft/class_3906;)V
      named <init> Lnet/minecraft/server/world/ServerLightingProvider;<init>(Lnet/minecraft/world/chunk/ChunkProvider;Lnet/minecraft/server/world/ThreadedAnvilChunkStorage;ZLnet/minecraft/util/thread/TaskExecutor;Lnet/minecraft/util/thread/MessageListener;)V
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • doLightUpdates

      public int doLightUpdates()
      Specified by:
      doLightUpdates in interface LightingView
      Overrides:
      doLightUpdates in class LightingProvider
      Mappings:
      Namespace Name Mixin selector
      official a Leae;a()I
      intermediary method_15516 Lnet/minecraft/class_3565;method_15516()I
      named doLightUpdates Lnet/minecraft/world/chunk/light/LightingView;doLightUpdates()I
    • checkBlock

      public void checkBlock(BlockPos pos)
      Specified by:
      checkBlock in interface LightingView
      Overrides:
      checkBlock in class LightingProvider
      Mappings:
      Namespace Name Mixin selector
      official a Leae;a(Lgw;)V
      intermediary method_15513 Lnet/minecraft/class_3565;method_15513(Lnet/minecraft/class_2338;)V
      named checkBlock Lnet/minecraft/world/chunk/light/LightingView;checkBlock(Lnet/minecraft/util/math/BlockPos;)V
    • updateChunkStatus

      protected void updateChunkStatus(ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lakt;a(Lcpc;)V
      intermediary method_20386 Lnet/minecraft/class_3227;method_20386(Lnet/minecraft/class_1923;)V
      named updateChunkStatus Lnet/minecraft/server/world/ServerLightingProvider;updateChunkStatus(Lnet/minecraft/util/math/ChunkPos;)V
    • setSectionStatus

      public void setSectionStatus(ChunkSectionPos pos, boolean notReady)
      Specified by:
      setSectionStatus in interface LightingView
      Overrides:
      setSectionStatus in class LightingProvider
      Mappings:
      Namespace Name Mixin selector
      official a Leae;a(Lhw;Z)V
      intermediary method_15551 Lnet/minecraft/class_3565;method_15551(Lnet/minecraft/class_4076;Z)V
      named setSectionStatus Lnet/minecraft/world/chunk/light/LightingView;setSectionStatus(Lnet/minecraft/util/math/ChunkSectionPos;Z)V
    • propagateLight

      public void propagateLight(ChunkPos chunkPos)
      Specified by:
      propagateLight in interface LightingView
      Overrides:
      propagateLight in class LightingProvider
      Mappings:
      Namespace Name Mixin selector
      official b Leae;b(Lcpc;)V
      intermediary method_51471 Lnet/minecraft/class_3565;method_51471(Lnet/minecraft/class_1923;)V
      named propagateLight Lnet/minecraft/world/chunk/light/LightingView;propagateLight(Lnet/minecraft/util/math/ChunkPos;)V
    • setColumnEnabled

      public void setColumnEnabled(ChunkPos pos, boolean retainData)
      Specified by:
      setColumnEnabled in interface LightingView
      Overrides:
      setColumnEnabled in class LightingProvider
      Mappings:
      Namespace Name Mixin selector
      official a Leae;a(Lcpc;Z)V
      intermediary method_15512 Lnet/minecraft/class_3565;method_15512(Lnet/minecraft/class_1923;Z)V
      named setColumnEnabled Lnet/minecraft/world/chunk/light/LightingView;setColumnEnabled(Lnet/minecraft/util/math/ChunkPos;Z)V
    • enqueueSectionData

      public void enqueueSectionData(LightType lightType, ChunkSectionPos pos, @Nullable @Nullable ChunkNibbleArray nibbles)
      Overrides:
      enqueueSectionData in class LightingProvider
      Mappings:
      Namespace Name Mixin selector
      official a Leab;a(Lcqe;Lhw;Ldhl;)V
      intermediary method_15558 Lnet/minecraft/class_3568;method_15558(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;Lnet/minecraft/class_2804;)V
      named enqueueSectionData Lnet/minecraft/world/chunk/light/LightingProvider;enqueueSectionData(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/chunk/ChunkNibbleArray;)V
    • enqueue

      private void enqueue(int x, int z, ServerLightingProvider.Stage stage, Runnable task)
      Mappings:
      Namespace Name Mixin selector
      official a Lakt;a(IILakt$a;Ljava/lang/Runnable;)V
      intermediary method_17308 Lnet/minecraft/class_3227;method_17308(IILnet/minecraft/class_3227$class_3901;Ljava/lang/Runnable;)V
      named enqueue Lnet/minecraft/server/world/ServerLightingProvider;enqueue(IILnet/minecraft/server/world/ServerLightingProvider$Stage;Ljava/lang/Runnable;)V
    • enqueue

      private void enqueue(int x, int z, IntSupplier completedLevelSupplier, ServerLightingProvider.Stage stage, Runnable task)
      Mappings:
      Namespace Name Mixin selector
      official a Lakt;a(IILjava/util/function/IntSupplier;Lakt$a;Ljava/lang/Runnable;)V
      intermediary method_17307 Lnet/minecraft/class_3227;method_17307(IILjava/util/function/IntSupplier;Lnet/minecraft/class_3227$class_3901;Ljava/lang/Runnable;)V
      named enqueue Lnet/minecraft/server/world/ServerLightingProvider;enqueue(IILjava/util/function/IntSupplier;Lnet/minecraft/server/world/ServerLightingProvider$Stage;Ljava/lang/Runnable;)V
    • setRetainData

      public void setRetainData(ChunkPos pos, boolean retainData)
      Overrides:
      setRetainData in class LightingProvider
      Mappings:
      Namespace Name Mixin selector
      official b Leab;b(Lcpc;Z)V
      intermediary method_20601 Lnet/minecraft/class_3568;method_20601(Lnet/minecraft/class_1923;Z)V
      named setRetainData Lnet/minecraft/world/chunk/light/LightingProvider;setRetainData(Lnet/minecraft/util/math/ChunkPos;Z)V
    • initializeLight

      public CompletableFuture<Chunk> initializeLight(Chunk chunk, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lakt;a(Ldhf;Z)Ljava/util/concurrent/CompletableFuture;
      intermediary method_51285 Lnet/minecraft/class_3227;method_51285(Lnet/minecraft/class_2791;Z)Ljava/util/concurrent/CompletableFuture;
      named initializeLight Lnet/minecraft/server/world/ServerLightingProvider;initializeLight(Lnet/minecraft/world/chunk/Chunk;Z)Ljava/util/concurrent/CompletableFuture;
    • light

      public CompletableFuture<Chunk> light(Chunk chunk, boolean excludeBlocks)
      Mappings:
      Namespace Name Mixin selector
      official b Lakt;b(Ldhf;Z)Ljava/util/concurrent/CompletableFuture;
      intermediary method_17310 Lnet/minecraft/class_3227;method_17310(Lnet/minecraft/class_2791;Z)Ljava/util/concurrent/CompletableFuture;
      named light Lnet/minecraft/server/world/ServerLightingProvider;light(Lnet/minecraft/world/chunk/Chunk;Z)Ljava/util/concurrent/CompletableFuture;
    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      official b Lakt;b()V
      intermediary method_17303 Lnet/minecraft/class_3227;method_17303()V
      named tick Lnet/minecraft/server/world/ServerLightingProvider;tick()V
    • runTasks

      private void runTasks()
      Mappings:
      Namespace Name Mixin selector
      official f Lakt;f()V
      intermediary method_14277 Lnet/minecraft/class_3227;method_14277()V
      named runTasks Lnet/minecraft/server/world/ServerLightingProvider;runTasks()V
    • enqueue

      public CompletableFuture<?> enqueue(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lakt;a(II)Ljava/util/concurrent/CompletableFuture;
      intermediary method_53694 Lnet/minecraft/class_3227;method_53694(II)Ljava/util/concurrent/CompletableFuture;
      named enqueue Lnet/minecraft/server/world/ServerLightingProvider;enqueue(II)Ljava/util/concurrent/CompletableFuture;