net.minecraft.world.chunk.light

public final class ChunkSkyLightProvider

extends ChunkLightProvider<SkyLightStorage$Data, SkyLightStorage>

All mapped superinterfaces:

ChunkLightingView, LightingView

net.minecraft.world.level.lighting.SkyLightEngine
net.minecraft.class_3572
net.minecraft.world.chunk.light.ChunkSkyLightProvider

Field summary

Modifier and TypeField
private static final long
REMOVE_TOP_SKY_SOURCE_ENTRY
field_44743
field_44743
private static final long
REMOVE_SKY_SOURCE_ENTRY
field_44744
field_44744
private static final long
ADD_SKY_SOURCE_ENTRY
field_44745
field_44745
private final BlockPos$Mutable
mutablePos
field_44746
tempPos
private final ChunkSkyLight
emptyChunkSources
field_44747
defaultSkyLight

Constructor summary

ModifierConstructor
public (ChunkProvider chunkProvider)
protected (ChunkProvider chunkProvider, SkyLightStorage lightStorage)

Method summary

Modifier and TypeMethod
private static boolean
isSourceLevel(int value)
method_51584(int arg0)
isMaxLightLevel(int lightLevel)
private int
getLowestSourceY(int x, int z, int defaultValue)
method_51585(int arg0, int arg1, int arg2)
getSkyLightOrDefault(int x, int z, int defaultValue)
private ChunkSkyLight
getChunkSources(int chunkX, int chunkZ)
method_51589(int arg0, int arg1)
getSkyLight(int chunkX, int chunkZ)
protected void
checkNode(long blockNode)
method_51529(long arg0)
checkForLightUpdate(long arg0)
private void
updateSourcesInColumn(int x, int z, int lowestSourceY)
method_51590(int arg0, int arg1, int arg2)
method_51590(int x, int z, int skyLightY)
private void
removeSourcesBelow(int x, int z, int lowestSourceY, int worldBottomY)
method_51586(int arg0, int arg1, int arg2, int arg3)
method_51586(int x, int z, int skyLightY, int minY)
private void
addSourcesAbove(int x, int z, int lowestSourceY, int worldBottomY)
method_51591(int arg0, int arg1, int arg2, int arg3)
method_51591(int x, int z, int skyLightY, int minY)
protected void
propagateIncrease(long fromNode, long increaseData, int fromLevel)
method_51531(long arg0, long arg1, int arg2)
propagateLightIncrease(long arg0, long arg1, int arg2)
protected void
propagateDecrease(long fromNode, long decreaseData)
method_51530(long arg0, long arg1)
propagateLightDecrease(long arg0, long arg1)
private int
countEmptySectionsBelowIfAtBorder(long blockNode)
method_51592(long arg0)
getNumberOfSectionsBelowPos(long blockPos)
private void
propagateFromEmptySections(long toNode, Direction propagationDirection, int toLevel, boolean increase, int emptySectionsBelow)
method_51587(long arg0, class_2350 arg1, int arg2, boolean arg3, int arg4)
method_51587(long blockPos, Direction direction, int lightLevel, boolean increase, int numSectionsBelow)
private static boolean
crossedSectionEdge(Direction propagationDirection, int x, int z)
method_51588(class_2350 arg0, int arg1, int arg2)
exitsChunkXZ(Direction direction, int localX, int localZ)
public void
setLightEnabled(ChunkPos pos, boolean enable)
method_15512(class_1923 arg0, boolean arg1)
setColumnEnabled(ChunkPos arg0, boolean arg1)
public void
propagateLightSources(ChunkPos pos)
method_51471(class_1923 arg0)
propagateLight(ChunkPos arg0)