Package net.minecraft.world.chunk.light
Class LightingProvider
java.lang.Object
net.minecraft.world.chunk.light.LightingProvider
- All Implemented Interfaces:
LightingView
- Direct Known Subclasses:
ServerLightingProvider
public class LightingProvider extends Object implements LightingView
-
Field Summary
Fields Modifier and Type Field Description private ChunkLightProvider<?,?>blockLightProviderprotected HeightLimitViewfield_27339private ChunkLightProvider<?,?>skyLightProvider -
Constructor Summary
Constructors Constructor Description LightingProvider(ChunkProvider chunkProvider, boolean hasBlockLight, boolean hasSkyLight) -
Method Summary
Modifier and Type Method Description voidaddLightSource(BlockPos pos, int level)voidcheckBlock(BlockPos pos)StringdisplaySectionLevel(LightType lightType, ChunkSectionPos chunkSectionPos)intdoLightUpdates(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation)voidenqueueSectionData(LightType lightType, ChunkSectionPos pos, ChunkNibbleArray nibbles, boolean bool)ChunkLightingViewget(LightType lightType)intgetLight(BlockPos pos, int ambientDarkness)booleanhasUpdates()intmethod_31928()intmethod_31929()intmethod_31930()voidsetColumnEnabled(ChunkPos pos, boolean lightEnabled)voidsetRetainData(ChunkPos pos, boolean retainData)voidsetSectionStatus(ChunkSectionPos pos, boolean notReady)Methods 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_27339
-
blockLightProvider
-
skyLightProvider
-
-
Constructor Details
-
LightingProvider
-
-
Method Details
-
checkBlock
-
addLightSource
-
hasUpdates
public boolean hasUpdates() -
doLightUpdates
public int doLightUpdates(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation) -
setSectionStatus
- Specified by:
setSectionStatusin interfaceLightingView
-
setColumnEnabled
-
get
-
displaySectionLevel
@Environment(CLIENT) public String displaySectionLevel(LightType lightType, ChunkSectionPos chunkSectionPos) -
enqueueSectionData
public void enqueueSectionData(LightType lightType, ChunkSectionPos pos, @Nullable ChunkNibbleArray nibbles, boolean bool) -
setRetainData
-
getLight
-
method_31928
public int method_31928() -
method_31929
public int method_31929() -
method_31930
public int method_31930()
-