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/ServerLightingProviderintermediary net/minecraft/class_3227official auh
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier 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.LightingProvider
DEFAULT, field_31714, world -
Constructor Summary
ConstructorsConstructorDescriptionServerLightingProvider(ChunkProvider chunkProvider, ServerChunkLoadingManager chunkLoadingManager, boolean hasBlockLight, SimpleConsecutiveExecutor processor, ChunkTaskScheduler executor) -
Method Summary
Modifier 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.LightingProvider
displaySectionLevel, get, getBottomY, getHeight, getLight, getStatus, getTopY, hasUpdates, isLightingEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.chunk.light.LightingView
setSectionStatus
-
Field Details
-
field_44692
public static final int field_44692- See Also:
- Mappings:
Namespace Name Mixin selector named field_44692Lnet/minecraft/server/world/ServerLightingProvider;field_44692:Iintermediary field_44692Lnet/minecraft/class_3227;field_44692:Iofficial aLauh;a:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/server/world/ServerLightingProvider;LOGGER:Lorg/slf4j/Logger;intermediary field_14020Lnet/minecraft/class_3227;field_14020:Lorg/slf4j/Logger;official eLauh;e:Lorg/slf4j/Logger;
-
processor
- Mappings:
Namespace Name Mixin selector named processorLnet/minecraft/server/world/ServerLightingProvider;processor:Lnet/minecraft/util/thread/SimpleConsecutiveExecutor;intermediary field_54049Lnet/minecraft/class_3227;field_54049:Lnet/minecraft/class_10176;official fLauh;f:Lbwa;
-
pendingTasks
private final ObjectList<com.mojang.datafixers.util.Pair<ServerLightingProvider.Stage,Runnable>> pendingTasks- Mappings:
Namespace Name Mixin selector named pendingTasksLnet/minecraft/server/world/ServerLightingProvider;pendingTasks:Lit/unimi/dsi/fastutil/objects/ObjectList;intermediary field_17256Lnet/minecraft/class_3227;field_17256:Lit/unimi/dsi/fastutil/objects/ObjectList;official gLauh;g:Lit/unimi/dsi/fastutil/objects/ObjectList;
-
chunkLoadingManager
- Mappings:
Namespace Name Mixin selector named chunkLoadingManagerLnet/minecraft/server/world/ServerLightingProvider;chunkLoadingManager:Lnet/minecraft/server/world/ServerChunkLoadingManager;intermediary field_17257Lnet/minecraft/class_3227;field_17257:Lnet/minecraft/class_3898;official hLauh;h:Lath;
-
executor
- Mappings:
Namespace Name Mixin selector named executorLnet/minecraft/server/world/ServerLightingProvider;executor:Lnet/minecraft/server/world/ChunkTaskScheduler;intermediary field_54050Lnet/minecraft/class_3227;field_54050:Lnet/minecraft/class_10171;official iLauh;i:Latj;
-
taskBatchSize
private final int taskBatchSize- See Also:
- Mappings:
Namespace Name Mixin selector named taskBatchSizeLnet/minecraft/server/world/ServerLightingProvider;taskBatchSize:Iintermediary field_17260Lnet/minecraft/class_3227;field_17260:Iofficial jLauh;j:I
-
ticking
- Mappings:
Namespace Name Mixin selector named tickingLnet/minecraft/server/world/ServerLightingProvider;ticking:Ljava/util/concurrent/atomic/AtomicBoolean;intermediary field_18812Lnet/minecraft/class_3227;field_18812:Ljava/util/concurrent/atomic/AtomicBoolean;official kLauh;k:Ljava/util/concurrent/atomic/AtomicBoolean;
-
-
Constructor Details
-
ServerLightingProvider
public 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;)Vintermediary <init>Lnet/minecraft/class_3227;<init>(Lnet/minecraft/class_2823;Lnet/minecraft/class_3898;ZLnet/minecraft/class_10176;Lnet/minecraft/class_10171;)Vofficial <init>Lauh;<init>(Legn;Lath;ZLbwa;Latj;)V
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
doLightUpdates
public int doLightUpdates()- Specified by:
doLightUpdatesin interfaceLightingView- Overrides:
doLightUpdatesin classLightingProvider- Mappings:
Namespace Name Mixin selector named doLightUpdatesLnet/minecraft/world/chunk/light/LightingView;doLightUpdates()Iintermediary method_15516Lnet/minecraft/class_3565;method_15516()Iofficial aLfaf;a()I
-
checkBlock
- Specified by:
checkBlockin interfaceLightingView- Overrides:
checkBlockin classLightingProvider- Mappings:
Namespace Name Mixin selector named checkBlockLnet/minecraft/world/chunk/light/LightingView;checkBlock(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_15513Lnet/minecraft/class_3565;method_15513(Lnet/minecraft/class_2338;)Vofficial aLfaf;a(Ljb;)V
-
updateChunkStatus
- Mappings:
Namespace Name Mixin selector named updateChunkStatusLnet/minecraft/server/world/ServerLightingProvider;updateChunkStatus(Lnet/minecraft/util/math/ChunkPos;)Vintermediary method_20386Lnet/minecraft/class_3227;method_20386(Lnet/minecraft/class_1923;)Vofficial aLauh;a(Ldmb;)V
-
setSectionStatus
- Specified by:
setSectionStatusin interfaceLightingView- Overrides:
setSectionStatusin classLightingProvider- Mappings:
Namespace Name Mixin selector named setSectionStatusLnet/minecraft/world/chunk/light/LightingView;setSectionStatus(Lnet/minecraft/util/math/ChunkSectionPos;Z)Vintermediary method_15551Lnet/minecraft/class_3565;method_15551(Lnet/minecraft/class_4076;Z)Vofficial aLfaf;a(Lke;Z)V
-
propagateLight
- Specified by:
propagateLightin interfaceLightingView- Overrides:
propagateLightin classLightingProvider- Mappings:
Namespace Name Mixin selector named propagateLightLnet/minecraft/world/chunk/light/LightingView;propagateLight(Lnet/minecraft/util/math/ChunkPos;)Vintermediary method_51471Lnet/minecraft/class_3565;method_51471(Lnet/minecraft/class_1923;)Vofficial bLfaf;b(Ldmb;)V
-
setColumnEnabled
- Specified by:
setColumnEnabledin interfaceLightingView- Overrides:
setColumnEnabledin classLightingProvider- Mappings:
Namespace Name Mixin selector named setColumnEnabledLnet/minecraft/world/chunk/light/LightingView;setColumnEnabled(Lnet/minecraft/util/math/ChunkPos;Z)Vintermediary method_15512Lnet/minecraft/class_3565;method_15512(Lnet/minecraft/class_1923;Z)Vofficial aLfaf;a(Ldmb;Z)V
-
enqueueSectionData
public void enqueueSectionData(LightType lightType, ChunkSectionPos pos, @Nullable @Nullable ChunkNibbleArray nibbles) - Overrides:
enqueueSectionDatain classLightingProvider- Mappings:
Namespace Name Mixin selector named enqueueSectionDataLnet/minecraft/world/chunk/light/LightingProvider;enqueueSectionData(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/chunk/ChunkNibbleArray;)Vintermediary method_15558Lnet/minecraft/class_3568;method_15558(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;Lnet/minecraft/class_2804;)Vofficial aLfac;a(Ldnf;Lke;Legf;)V
-
enqueue
- Mappings:
Namespace Name Mixin selector named enqueueLnet/minecraft/server/world/ServerLightingProvider;enqueue(IILnet/minecraft/server/world/ServerLightingProvider$Stage;Ljava/lang/Runnable;)Vintermediary method_17308Lnet/minecraft/class_3227;method_17308(IILnet/minecraft/class_3227$class_3901;Ljava/lang/Runnable;)Vofficial aLauh;a(IILauh$a;Ljava/lang/Runnable;)V
-
enqueue
private void enqueue(int x, int z, IntSupplier completedLevelSupplier, ServerLightingProvider.Stage stage, Runnable task) - Mappings:
Namespace Name Mixin selector named enqueueLnet/minecraft/server/world/ServerLightingProvider;enqueue(IILjava/util/function/IntSupplier;Lnet/minecraft/server/world/ServerLightingProvider$Stage;Ljava/lang/Runnable;)Vintermediary method_17307Lnet/minecraft/class_3227;method_17307(IILjava/util/function/IntSupplier;Lnet/minecraft/class_3227$class_3901;Ljava/lang/Runnable;)Vofficial aLauh;a(IILjava/util/function/IntSupplier;Lauh$a;Ljava/lang/Runnable;)V
-
setRetainData
- Overrides:
setRetainDatain classLightingProvider- Mappings:
Namespace Name Mixin selector named setRetainDataLnet/minecraft/world/chunk/light/LightingProvider;setRetainData(Lnet/minecraft/util/math/ChunkPos;Z)Vintermediary method_20601Lnet/minecraft/class_3568;method_20601(Lnet/minecraft/class_1923;Z)Vofficial bLfac;b(Ldmb;Z)V
-
initializeLight
- Mappings:
Namespace Name Mixin selector named initializeLightLnet/minecraft/server/world/ServerLightingProvider;initializeLight(Lnet/minecraft/world/chunk/Chunk;Z)Ljava/util/concurrent/CompletableFuture;intermediary method_51285Lnet/minecraft/class_3227;method_51285(Lnet/minecraft/class_2791;Z)Ljava/util/concurrent/CompletableFuture;official aLauh;a(Lega;Z)Ljava/util/concurrent/CompletableFuture;
-
light
- Mappings:
Namespace Name Mixin selector named lightLnet/minecraft/server/world/ServerLightingProvider;light(Lnet/minecraft/world/chunk/Chunk;Z)Ljava/util/concurrent/CompletableFuture;intermediary method_17310Lnet/minecraft/class_3227;method_17310(Lnet/minecraft/class_2791;Z)Ljava/util/concurrent/CompletableFuture;official bLauh;b(Lega;Z)Ljava/util/concurrent/CompletableFuture;
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/server/world/ServerLightingProvider;tick()Vintermediary method_17303Lnet/minecraft/class_3227;method_17303()Vofficial bLauh;b()V
-
runTasks
private void runTasks()- Mappings:
Namespace Name Mixin selector named runTasksLnet/minecraft/server/world/ServerLightingProvider;runTasks()Vintermediary method_14277Lnet/minecraft/class_3227;method_14277()Vofficial fLauh;f()V
-
enqueue
- Mappings:
Namespace Name Mixin selector named enqueueLnet/minecraft/server/world/ServerLightingProvider;enqueue(II)Ljava/util/concurrent/CompletableFuture;intermediary method_53694Lnet/minecraft/class_3227;method_53694(II)Ljava/util/concurrent/CompletableFuture;official aLauh;a(II)Ljava/util/concurrent/CompletableFuture;
-