net.minecraft.world.chunk.light

public class LightingProvider

implements LightingView

net.minecraft.world.level.lighting.LevelLightEngine
net.minecraft.class_3568
net.minecraft.world.chunk.light.LightingProvider

Field summary

Modifier and TypeField
public static final int
LIGHT_SECTION_PADDING
field_31714
SECTION_VERTICAL_MARGIN
public static final LightingProvider
EMPTY
field_52658
DEFAULT
protected final HeightLimitView
levelHeightAccessor
field_27339
world
private final ChunkLightProvider<?, ?>
blockEngine
field_15814
blockLightProvider
private final ChunkLightProvider<?, ?>
skyEngine
field_15813
skyLightProvider

Constructor summary

ModifierConstructor
public (ChunkProvider chunkProvider, boolean hasBlockLight, boolean hasSkyLight)
private ()

Method summary

Modifier and TypeMethod
public void
checkBlock(BlockPos pos)
method_15513(class_2338 arg0)
checkBlock(BlockPos arg0)
public boolean
hasLightWork()
method_15518()
hasUpdates()
public int
runLightUpdates()
method_15516()
doLightUpdates()
public void
updateSectionStatus(SectionPos pos, boolean sectionEmpty)
method_15551(class_4076 arg0, boolean arg1)
setSectionStatus(ChunkSectionPos arg0, boolean arg1)
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)
public ChunkLightingView
getLayerListener(LightLayer layer)
method_15562(class_1944 arg0)
get(LightType lightType)
public String
getDebugData(LightLayer layer, SectionPos pos)
method_22876(class_1944 arg0, class_4076 arg1)
displaySectionLevel(LightType lightType, ChunkSectionPos pos)
public LightStorage$Status
getDebugSectionType(LightLayer layer, SectionPos pos)
method_51560(class_1944 arg0, class_4076 arg1)
getStatus(LightType lightType, ChunkSectionPos pos)
public void
queueSectionData(LightLayer layer, SectionPos pos, DataLayer data)
method_15558(class_1944 arg0, class_4076 arg1, class_2804 arg2)
enqueueSectionData(LightType lightType, ChunkSectionPos pos, ChunkNibbleArray nibbles)
public void
retainData(ChunkPos pos, boolean retain)
method_20601(class_1923 arg0, boolean arg1)
setRetainData(ChunkPos pos, boolean retainData)
public int
getRawBrightness(BlockPos pos, int skyDampen)
method_22363(class_2338 arg0, int arg1)
getLight(BlockPos pos, int ambientDarkness)
public boolean
lightOnInColumn(long sectionZeroNode)
method_62874(long arg0)
isLightingEnabled(long sectionPos)
public int
getLightSectionCount()
method_31928()
getHeightInSections()
public int
getMinLightSection()
method_31929()
getMinSectionY()
public int
getMaxLightSection()
method_31930()
getMaxSectionY()