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
- Mappings:
- Namespace - Name - named - net/minecraft/server/world/ServerLightingProvider- intermediary - net/minecraft/class_3227- official - arg
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ServerChunkLoadingManagerprivate final ChunkTaskSchedulerstatic final intprivate static final Loggerprivate final ObjectList<com.mojang.datafixers.util.Pair<ServerLightingProvider.Stage, Runnable>> private final SimpleConsecutiveExecutorprivate final intprivate final AtomicBooleanFields inherited from class net.minecraft.world.chunk.light.LightingProviderDEFAULT, field_31714, world
- 
Constructor SummaryConstructorsConstructorDescriptionServerLightingProvider(ChunkProvider chunkProvider, ServerChunkLoadingManager chunkLoadingManager, boolean hasBlockLight, SimpleConsecutiveExecutor processor, ChunkTaskScheduler executor) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheckBlock(BlockPos pos) voidclose()intenqueue(int x, int z) private voidenqueue(int x, int z, IntSupplier completedLevelSupplier, ServerLightingProvider.Stage stage, Runnable task) private voidenqueue(int x, int z, ServerLightingProvider.Stage stage, Runnable task) voidenqueueSectionData(LightType lightType, ChunkSectionPos pos, @Nullable ChunkNibbleArray nibbles) initializeLight(Chunk chunk, boolean bool) voidpropagateLight(ChunkPos chunkPos) private voidrunTasks()voidsetColumnEnabled(ChunkPos pos, boolean retainData) voidsetRetainData(ChunkPos pos, boolean retainData) voidsetSectionStatus(ChunkSectionPos pos, boolean notReady) voidtick()protected voidMethods inherited from class net.minecraft.world.chunk.light.LightingProviderdisplaySectionLevel, get, getBottomY, getHeight, getLight, getStatus, getTopY, hasUpdates, isLightingEnabledMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.chunk.light.LightingViewsetSectionStatus
- 
Field Details- 
field_44692public static final int field_44692- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_44692- Lnet/minecraft/server/world/ServerLightingProvider;field_44692:I- intermediary - field_44692- Lnet/minecraft/class_3227;field_44692:I- official - a- Larg;a:I
 
- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - named - LOGGER- Lnet/minecraft/server/world/ServerLightingProvider;LOGGER:Lorg/slf4j/Logger;- intermediary - field_14020- Lnet/minecraft/class_3227;field_14020:Lorg/slf4j/Logger;- official - e- Larg;e:Lorg/slf4j/Logger;
 
- 
processor- Mappings:
- Namespace - Name - Mixin selector - named - processor- Lnet/minecraft/server/world/ServerLightingProvider;processor:Lnet/minecraft/util/thread/SimpleConsecutiveExecutor;- intermediary - field_54049- Lnet/minecraft/class_3227;field_54049:Lnet/minecraft/class_10176;- official - f- Larg;f:Lbrb;
 
- 
pendingTasksprivate final ObjectList<com.mojang.datafixers.util.Pair<ServerLightingProvider.Stage,Runnable>> pendingTasks- Mappings:
- Namespace - Name - Mixin selector - named - pendingTasks- Lnet/minecraft/server/world/ServerLightingProvider;pendingTasks:Lit/unimi/dsi/fastutil/objects/ObjectList;- intermediary - field_17256- Lnet/minecraft/class_3227;field_17256:Lit/unimi/dsi/fastutil/objects/ObjectList;- official - g- Larg;g:Lit/unimi/dsi/fastutil/objects/ObjectList;
 
- 
chunkLoadingManager- Mappings:
- Namespace - Name - Mixin selector - named - chunkLoadingManager- Lnet/minecraft/server/world/ServerLightingProvider;chunkLoadingManager:Lnet/minecraft/server/world/ServerChunkLoadingManager;- intermediary - field_17257- Lnet/minecraft/class_3227;field_17257:Lnet/minecraft/class_3898;- official - h- Larg;h:Laqi;
 
- 
executor- Mappings:
- Namespace - Name - Mixin selector - named - executor- Lnet/minecraft/server/world/ServerLightingProvider;executor:Lnet/minecraft/server/world/ChunkTaskScheduler;- intermediary - field_54050- Lnet/minecraft/class_3227;field_54050:Lnet/minecraft/class_10171;- official - i- Larg;i:Laqk;
 
- 
taskBatchSizeprivate final int taskBatchSize- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - taskBatchSize- Lnet/minecraft/server/world/ServerLightingProvider;taskBatchSize:I- intermediary - field_17260- Lnet/minecraft/class_3227;field_17260:I- official - j- Larg;j:I
 
- 
ticking- Mappings:
- Namespace - Name - Mixin selector - named - ticking- Lnet/minecraft/server/world/ServerLightingProvider;ticking:Ljava/util/concurrent/atomic/AtomicBoolean;- intermediary - field_18812- Lnet/minecraft/class_3227;field_18812:Ljava/util/concurrent/atomic/AtomicBoolean;- official - k- Larg;k:Ljava/util/concurrent/atomic/AtomicBoolean;
 
 
- 
- 
Constructor Details- 
ServerLightingProviderpublic ServerLightingProvider(ChunkProvider chunkProvider, ServerChunkLoadingManager chunkLoadingManager, boolean hasBlockLight, SimpleConsecutiveExecutor processor, ChunkTaskScheduler executor) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/server/world/ServerLightingProvider;<init>(Lnet/minecraft/world/chunk/ChunkProvider;Lnet/minecraft/server/world/ServerChunkLoadingManager;ZLnet/minecraft/util/thread/SimpleConsecutiveExecutor;Lnet/minecraft/server/world/ChunkTaskScheduler;)V- intermediary - <init>- Lnet/minecraft/class_3227;<init>(Lnet/minecraft/class_2823;Lnet/minecraft/class_3898;ZLnet/minecraft/class_10176;Lnet/minecraft/class_10171;)V- official - <init>- Larg;<init>(Ldzg;Laqi;ZLbrb;Laqk;)V
 
 
- 
- 
Method Details- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
doLightUpdatespublic int doLightUpdates()- Specified by:
- doLightUpdatesin interface- LightingView
- Overrides:
- doLightUpdatesin class- LightingProvider
- Mappings:
- Namespace - Name - Mixin selector - named - doLightUpdates- Lnet/minecraft/world/chunk/light/LightingView;doLightUpdates()I- intermediary - method_15516- Lnet/minecraft/class_3565;method_15516()I- official - a- Less;a()I
 
- 
checkBlock- Specified by:
- checkBlockin interface- LightingView
- Overrides:
- checkBlockin class- LightingProvider
- Mappings:
- Namespace - Name - Mixin selector - named - checkBlock- Lnet/minecraft/world/chunk/light/LightingView;checkBlock(Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_15513- Lnet/minecraft/class_3565;method_15513(Lnet/minecraft/class_2338;)V- official - a- Less;a(Lji;)V
 
- 
updateChunkStatus- Mappings:
- Namespace - Name - Mixin selector - named - updateChunkStatus- Lnet/minecraft/server/world/ServerLightingProvider;updateChunkStatus(Lnet/minecraft/util/math/ChunkPos;)V- intermediary - method_20386- Lnet/minecraft/class_3227;method_20386(Lnet/minecraft/class_1923;)V- official - a- Larg;a(Ldfp;)V
 
- 
setSectionStatus- Specified by:
- setSectionStatusin interface- LightingView
- Overrides:
- setSectionStatusin class- LightingProvider
- Mappings:
- Namespace - Name - Mixin selector - named - setSectionStatus- Lnet/minecraft/world/chunk/light/LightingView;setSectionStatus(Lnet/minecraft/util/math/ChunkSectionPos;Z)V- intermediary - method_15551- Lnet/minecraft/class_3565;method_15551(Lnet/minecraft/class_4076;Z)V- official - a- Less;a(Lkk;Z)V
 
- 
propagateLight- Specified by:
- propagateLightin interface- LightingView
- Overrides:
- propagateLightin class- LightingProvider
- Mappings:
- Namespace - Name - Mixin selector - named - propagateLight- Lnet/minecraft/world/chunk/light/LightingView;propagateLight(Lnet/minecraft/util/math/ChunkPos;)V- intermediary - method_51471- Lnet/minecraft/class_3565;method_51471(Lnet/minecraft/class_1923;)V- official - b- Less;b(Ldfp;)V
 
- 
setColumnEnabled- Specified by:
- setColumnEnabledin interface- LightingView
- Overrides:
- setColumnEnabledin class- LightingProvider
- Mappings:
- Namespace - Name - Mixin selector - named - setColumnEnabled- Lnet/minecraft/world/chunk/light/LightingView;setColumnEnabled(Lnet/minecraft/util/math/ChunkPos;Z)V- intermediary - method_15512- Lnet/minecraft/class_3565;method_15512(Lnet/minecraft/class_1923;Z)V- official - a- Less;a(Ldfp;Z)V
 
- 
enqueueSectionDatapublic void enqueueSectionData(LightType lightType, ChunkSectionPos pos, @Nullable @Nullable ChunkNibbleArray nibbles) - Overrides:
- enqueueSectionDatain class- LightingProvider
- Mappings:
- Namespace - Name - Mixin selector - named - enqueueSectionData- Lnet/minecraft/world/chunk/light/LightingProvider;enqueueSectionData(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/chunk/ChunkNibbleArray;)V- intermediary - method_15558- Lnet/minecraft/class_3568;method_15558(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;Lnet/minecraft/class_2804;)V- official - a- Lesp;a(Ldgs;Lkk;Ldyy;)V
 
- 
enqueue- Mappings:
- Namespace - Name - Mixin selector - named - enqueue- Lnet/minecraft/server/world/ServerLightingProvider;enqueue(IILnet/minecraft/server/world/ServerLightingProvider$Stage;Ljava/lang/Runnable;)V- intermediary - method_17308- Lnet/minecraft/class_3227;method_17308(IILnet/minecraft/class_3227$class_3901;Ljava/lang/Runnable;)V- official - a- Larg;a(IILarg$a;Ljava/lang/Runnable;)V
 
- 
enqueueprivate void enqueue(int x, int z, IntSupplier completedLevelSupplier, ServerLightingProvider.Stage stage, Runnable task) - Mappings:
- Namespace - Name - Mixin selector - named - enqueue- Lnet/minecraft/server/world/ServerLightingProvider;enqueue(IILjava/util/function/IntSupplier;Lnet/minecraft/server/world/ServerLightingProvider$Stage;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- official - a- Larg;a(IILjava/util/function/IntSupplier;Larg$a;Ljava/lang/Runnable;)V
 
- 
setRetainData- Overrides:
- setRetainDatain class- LightingProvider
- Mappings:
- Namespace - Name - Mixin selector - named - setRetainData- Lnet/minecraft/world/chunk/light/LightingProvider;setRetainData(Lnet/minecraft/util/math/ChunkPos;Z)V- intermediary - method_20601- Lnet/minecraft/class_3568;method_20601(Lnet/minecraft/class_1923;Z)V- official - b- Lesp;b(Ldfp;Z)V
 
- 
initializeLight- Mappings:
- Namespace - Name - Mixin selector - named - initializeLight- Lnet/minecraft/server/world/ServerLightingProvider;initializeLight(Lnet/minecraft/world/chunk/Chunk;Z)Ljava/util/concurrent/CompletableFuture;- intermediary - method_51285- Lnet/minecraft/class_3227;method_51285(Lnet/minecraft/class_2791;Z)Ljava/util/concurrent/CompletableFuture;- official - a- Larg;a(Ldyt;Z)Ljava/util/concurrent/CompletableFuture;
 
- 
light- Mappings:
- Namespace - Name - Mixin selector - named - light- Lnet/minecraft/server/world/ServerLightingProvider;light(Lnet/minecraft/world/chunk/Chunk;Z)Ljava/util/concurrent/CompletableFuture;- intermediary - method_17310- Lnet/minecraft/class_3227;method_17310(Lnet/minecraft/class_2791;Z)Ljava/util/concurrent/CompletableFuture;- official - b- Larg;b(Ldyt;Z)Ljava/util/concurrent/CompletableFuture;
 
- 
tickpublic void tick()- Mappings:
- Namespace - Name - Mixin selector - named - tick- Lnet/minecraft/server/world/ServerLightingProvider;tick()V- intermediary - method_17303- Lnet/minecraft/class_3227;method_17303()V- official - b- Larg;b()V
 
- 
runTasksprivate void runTasks()- Mappings:
- Namespace - Name - Mixin selector - named - runTasks- Lnet/minecraft/server/world/ServerLightingProvider;runTasks()V- intermediary - method_14277- Lnet/minecraft/class_3227;method_14277()V- official - f- Larg;f()V
 
- 
enqueue- Mappings:
- Namespace - Name - Mixin selector - named - enqueue- Lnet/minecraft/server/world/ServerLightingProvider;enqueue(II)Ljava/util/concurrent/CompletableFuture;- intermediary - method_53694- Lnet/minecraft/class_3227;method_53694(II)Ljava/util/concurrent/CompletableFuture;- official - a- Larg;a(II)Ljava/util/concurrent/CompletableFuture;
 
 
-