public class ServerWorldLightManager extends WorldLightManager implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ServerWorldLightManager.Phase |
Modifier and Type | Field and Description |
---|---|
private ChunkManager |
chunkManager |
private DelegatedTaskExecutor<java.lang.Runnable> |
field_215605_b |
private it.unimi.dsi.fastutil.objects.ObjectList<com.mojang.datafixers.util.Pair<ServerWorldLightManager.Phase,java.lang.Runnable>> |
field_215606_c |
private ITaskExecutor<ChunkTaskPriorityQueueSorter.FunctionEntry<java.lang.Runnable>> |
field_215608_e |
private int |
field_215609_f |
private java.util.concurrent.atomic.AtomicBoolean |
field_215610_g |
private static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
ServerWorldLightManager(IChunkLightProvider provider,
ChunkManager chunkManagerIn,
boolean hasSkyLight,
DelegatedTaskExecutor<java.lang.Runnable> p_i50701_4_,
ITaskExecutor<ChunkTaskPriorityQueueSorter.FunctionEntry<java.lang.Runnable>> p_i50701_5_) |
Modifier and Type | Method and Description |
---|---|
void |
checkBlock(BlockPos blockPosIn) |
void |
close() |
void |
enableLightSources(ChunkPos p_215571_1_,
boolean p_215571_2_) |
private void |
func_215586_a(int chunkX,
int chunkZ,
ServerWorldLightManager.Phase p_215586_3_,
java.lang.Runnable p_215586_4_) |
void |
func_215588_z_() |
void |
func_215598_a(int p_215598_1_) |
private void |
func_215600_a(int chunkX,
int chunkZ,
java.util.function.IntSupplier p_215600_3_,
ServerWorldLightManager.Phase p_215600_4_,
java.lang.Runnable p_215600_5_) |
private void |
func_215603_b() |
java.util.concurrent.CompletableFuture<IChunk> |
lightChunk(IChunk p_215593_1_,
boolean p_215593_2_) |
void |
onBlockEmissionIncrease(BlockPos blockPosIn,
int p_215573_2_) |
void |
retainData(ChunkPos pos,
boolean retain) |
void |
setData(LightType type,
SectionPos pos,
NibbleArray array) |
int |
tick(int toUpdateCount,
boolean updateSkyLight,
boolean updateBlockLight) |
protected void |
updateChunkStatus(ChunkPos p_215581_1_) |
void |
updateSectionStatus(SectionPos pos,
boolean isEmpty) |
getDebugInfo, getLightEngine, getLightSubtracted, hasLightWork
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_215567_a
private static final org.apache.logging.log4j.Logger LOGGER
private final DelegatedTaskExecutor<java.lang.Runnable> field_215605_b
private final it.unimi.dsi.fastutil.objects.ObjectList<com.mojang.datafixers.util.Pair<ServerWorldLightManager.Phase,java.lang.Runnable>> field_215606_c
private final ChunkManager chunkManager
private final ITaskExecutor<ChunkTaskPriorityQueueSorter.FunctionEntry<java.lang.Runnable>> field_215608_e
private volatile int field_215609_f
private final java.util.concurrent.atomic.AtomicBoolean field_215610_g
public ServerWorldLightManager(IChunkLightProvider provider, ChunkManager chunkManagerIn, boolean hasSkyLight, DelegatedTaskExecutor<java.lang.Runnable> p_i50701_4_, ITaskExecutor<ChunkTaskPriorityQueueSorter.FunctionEntry<java.lang.Runnable>> p_i50701_5_)
public void close()
close
in interface java.lang.AutoCloseable
public int tick(int toUpdateCount, boolean updateSkyLight, boolean updateBlockLight)
tick
in class WorldLightManager
public void onBlockEmissionIncrease(BlockPos blockPosIn, int p_215573_2_)
onBlockEmissionIncrease
in class WorldLightManager
public void checkBlock(BlockPos blockPosIn)
checkBlock
in class WorldLightManager
protected void updateChunkStatus(ChunkPos p_215581_1_)
public void updateSectionStatus(SectionPos pos, boolean isEmpty)
updateSectionStatus
in interface ILightListener
updateSectionStatus
in class WorldLightManager
public void enableLightSources(ChunkPos p_215571_1_, boolean p_215571_2_)
enableLightSources
in class WorldLightManager
public void setData(LightType type, SectionPos pos, @Nullable NibbleArray array)
setData
in class WorldLightManager
private void func_215586_a(int chunkX, int chunkZ, ServerWorldLightManager.Phase p_215586_3_, java.lang.Runnable p_215586_4_)
private void func_215600_a(int chunkX, int chunkZ, java.util.function.IntSupplier p_215600_3_, ServerWorldLightManager.Phase p_215600_4_, java.lang.Runnable p_215600_5_)
public void retainData(ChunkPos pos, boolean retain)
retainData
in class WorldLightManager
public java.util.concurrent.CompletableFuture<IChunk> lightChunk(IChunk p_215593_1_, boolean p_215593_2_)
public void func_215588_z_()
private void func_215603_b()
public void func_215598_a(int p_215598_1_)