Package net.minecraft.server.world
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 aay
intermediary net/minecraft/class_3227
named net/minecraft/server/world/ServerLightingProvider
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ServerLightingProvider.Stage
-
Field Summary
Fields Modifier and Type Field Description private ThreadedAnvilChunkStorage
chunkStorage
private MessageListener<ChunkTaskPrioritySystem.Task<Runnable>>
executor
private static Logger
LOGGER
private ObjectList<com.mojang.datafixers.util.Pair<ServerLightingProvider.Stage,Runnable>>
pendingTasks
private TaskExecutor<Runnable>
processor
private int
taskBatchSize
private AtomicBoolean
ticking
Fields inherited from class net.minecraft.world.chunk.light.LightingProvider
world
-
Constructor Summary
Constructors Constructor Description ServerLightingProvider(ChunkProvider chunkProvider, ThreadedAnvilChunkStorage chunkStorage, boolean hasBlockLight, TaskExecutor<Runnable> processor, MessageListener<ChunkTaskPrioritySystem.Task<Runnable>> executor)
-
Method Summary
Modifier and Type Method Description void
addLightSource(BlockPos pos, int level)
void
checkBlock(BlockPos pos)
void
close()
int
doLightUpdates(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation)
private void
enqueue(int x, int z, IntSupplier completedLevelSupplier, ServerLightingProvider.Stage stage, Runnable task)
private void
enqueue(int x, int z, ServerLightingProvider.Stage stage, Runnable task)
void
enqueueSectionData(LightType lightType, ChunkSectionPos pos, ChunkNibbleArray nibbles, boolean bool)
CompletableFuture<Chunk>
light(Chunk chunk, boolean excludeBlocks)
private void
runTasks()
void
setColumnEnabled(ChunkPos pos, boolean lightEnabled)
void
setRetainData(ChunkPos pos, boolean retainData)
void
setSectionStatus(ChunkSectionPos pos, boolean notReady)
void
setTaskBatchSize(int taskBatchSize)
void
tick()
protected void
updateChunkStatus(ChunkPos pos)
Methods inherited from class net.minecraft.world.chunk.light.LightingProvider
displaySectionLevel, get, getLight, hasUpdates, method_31928, method_31929, method_31930
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.chunk.light.LightingView
setSectionStatus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Laay;b:Lorg/apache/logging/log4j/Logger;
intermediary field_14020
Lnet/minecraft/class_3227;field_14020:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/server/world/ServerLightingProvider;LOGGER:Lorg/apache/logging/log4j/Logger;
-
processor
- Mappings:
Namespace Name Mixin selector official c
Laay;c:Lapa;
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 d
Laay;d: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
- Mappings:
Namespace Name Mixin selector official e
Laay;e:Laai;
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 f
Laay;f:Laoz;
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 volatile int taskBatchSize- Mappings:
Namespace Name Mixin selector official g
Laay;g:I
intermediary field_17260
Lnet/minecraft/class_3227;field_17260:I
named taskBatchSize
Lnet/minecraft/server/world/ServerLightingProvider;taskBatchSize:I
-
ticking
- Mappings:
Namespace Name Mixin selector official h
Laay;h: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>
Laay;<init>(Lcjy;Laai;ZLapa;Laoz;)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 interfaceAutoCloseable
- Mappings:
Namespace Name Mixin selector official close
Laay;close()V
intermediary close
Lnet/minecraft/class_3227;close()V
named close
Lnet/minecraft/server/world/ServerLightingProvider;close()V
-
doLightUpdates
public int doLightUpdates(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation)- Overrides:
doLightUpdates
in classLightingProvider
- Mappings:
Namespace Name Mixin selector official a
Ldac;a(IZZ)I
intermediary method_15563
Lnet/minecraft/class_3568;method_15563(IZZ)I
named doLightUpdates
Lnet/minecraft/world/chunk/light/LightingProvider;doLightUpdates(IZZ)I
-
addLightSource
- Overrides:
addLightSource
in classLightingProvider
- Mappings:
Namespace Name Mixin selector official a
Ldac;a(Lfx;I)V
intermediary method_15560
Lnet/minecraft/class_3568;method_15560(Lnet/minecraft/class_2338;I)V
named addLightSource
Lnet/minecraft/world/chunk/light/LightingProvider;addLightSource(Lnet/minecraft/util/math/BlockPos;I)V
-
checkBlock
- Overrides:
checkBlock
in classLightingProvider
- Mappings:
Namespace Name Mixin selector official a
Ldac;a(Lfx;)V
intermediary method_15559
Lnet/minecraft/class_3568;method_15559(Lnet/minecraft/class_2338;)V
named checkBlock
Lnet/minecraft/world/chunk/light/LightingProvider;checkBlock(Lnet/minecraft/util/math/BlockPos;)V
-
updateChunkStatus
- Mappings:
Namespace Name Mixin selector official a
Laay;a(Lbta;)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
- Specified by:
setSectionStatus
in interfaceLightingView
- Overrides:
setSectionStatus
in classLightingProvider
- Mappings:
Namespace Name Mixin selector official a
Ldad;a(Lgq;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
-
setColumnEnabled
- Overrides:
setColumnEnabled
in classLightingProvider
- Mappings:
Namespace Name Mixin selector official a
Ldac;a(Lbta;Z)V
intermediary method_15557
Lnet/minecraft/class_3568;method_15557(Lnet/minecraft/class_1923;Z)V
named setColumnEnabled
Lnet/minecraft/world/chunk/light/LightingProvider;setColumnEnabled(Lnet/minecraft/util/math/ChunkPos;Z)V
-
enqueueSectionData
public void enqueueSectionData(LightType lightType, ChunkSectionPos pos, @Nullable ChunkNibbleArray nibbles, boolean bool)- Overrides:
enqueueSectionData
in classLightingProvider
- Mappings:
Namespace Name Mixin selector official a
Ldac;a(Lbue;Lgq;Lcjq;Z)V
intermediary method_15558
Lnet/minecraft/class_3568;method_15558(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;Lnet/minecraft/class_2804;Z)V
named enqueueSectionData
Lnet/minecraft/world/chunk/light/LightingProvider;enqueueSectionData(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/chunk/ChunkNibbleArray;Z)V
-
enqueue
- Mappings:
Namespace Name Mixin selector official a
Laay;a(IILaay$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
Laay;a(IILjava/util/function/IntSupplier;Laay$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
- Overrides:
setRetainData
in classLightingProvider
- Mappings:
Namespace Name Mixin selector official b
Ldac;b(Lbta;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
-
light
- Mappings:
Namespace Name Mixin selector official a
Laay;a(Lcjl;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_
Laay;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 e
Laay;e()V
intermediary method_14277
Lnet/minecraft/class_3227;method_14277()V
named runTasks
Lnet/minecraft/server/world/ServerLightingProvider;runTasks()V
-
setTaskBatchSize
public void setTaskBatchSize(int taskBatchSize)- Mappings:
Namespace Name Mixin selector official a
Laay;a(I)V
intermediary method_17304
Lnet/minecraft/class_3227;method_17304(I)V
named setTaskBatchSize
Lnet/minecraft/server/world/ServerLightingProvider;setTaskBatchSize(I)V
-