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<?,?>
blockLightProvider
private ChunkLightProvider<?,?>
skyLightProvider
-
Constructor Summary
Constructors Constructor Description LightingProvider(ChunkProvider chunkProvider, boolean hasBlockLight, boolean hasSkyLight)
-
Method Summary
Modifier and Type Method Description void
addLightSource(BlockPos pos, int level)
void
checkBlock(BlockPos pos)
String
displaySectionLevel(LightType lightType, ChunkSectionPos chunkSectionPos)
int
doLightUpdates(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation)
void
enqueueSectionData(LightType lightType, ChunkSectionPos pos, ChunkNibbleArray nibbles, boolean bool)
ChunkLightingView
get(LightType lightType)
int
getLight(BlockPos pos, int ambientDarkness)
boolean
hasUpdates()
void
setColumnEnabled(ChunkPos pos, boolean lightEnabled)
void
setRetainData(ChunkPos pos, boolean retainData)
void
setSectionStatus(ChunkSectionPos pos, boolean notReady)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.chunk.light.LightingView
setSectionStatus
-
Field Details
-
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:
setSectionStatus
in 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
-