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<?,?>blockLightProviderprivate 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)intdoLightUpdates(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation)ChunkLightingViewget(LightType lightType)intgetLight(BlockPos pos, int ambientDarkness)booleanhasUpdates()Stringmethod_22876(LightType lightType, ChunkSectionPos chunkSectionPos)voidqueueData(LightType lightType, ChunkSectionPos pos, ChunkNibbleArray nibbles, boolean bool)voidsetLightEnabled(ChunkPos pos, boolean lightEnabled)voidsetRetainData(ChunkPos pos, boolean retainData)voidupdateSectionStatus(ChunkSectionPos pos, boolean status)
-
Field Details
-
Constructor Details
-
Method Details
-
checkBlock
-
addLightSource
-
hasUpdates
public boolean hasUpdates() -
doLightUpdates
public int doLightUpdates(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation) -
updateSectionStatus
- Specified by:
updateSectionStatusin interfaceLightingView
-
setLightEnabled
-
get
-
method_22876
@Environment(CLIENT) public String method_22876(LightType lightType, ChunkSectionPos chunkSectionPos) -
queueData
public void queueData(LightType lightType, ChunkSectionPos pos, @Nullable ChunkNibbleArray nibbles, boolean bool) -
setRetainData
-
getLight
-