Package net.minecraft.world.chunk.light
Class ChunkSkyLightProvider
java.lang.Object
net.minecraft.world.chunk.light.LevelPropagator
net.minecraft.world.chunk.light.ChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
net.minecraft.world.chunk.light.ChunkSkyLightProvider
- All Implemented Interfaces:
ChunkLightingView,LightingView
public final class ChunkSkyLightProvider extends ChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.chunk.light.ChunkLightingView
ChunkLightingView.Empty -
Field Summary
Fields Modifier and Type Field Description private static Direction[]DIRECTIONSprivate static Direction[]HORIZONTAL_DIRECTIONSFields inherited from class net.minecraft.world.chunk.light.ChunkLightProvider
chunkProvider, lightStorage, reusableBlockPos, type -
Constructor Summary
Constructors Constructor Description ChunkSkyLightProvider(ChunkProvider chunkProvider) -
Method Summary
Modifier and Type Method Description StringdisplaySectionLevel(long sectionPos)protected intgetPropagatedLevel(long sourceId, long targetId, int level)protected voidpropagateLevel(long id, int level, boolean decrease)protected intrecalculateLevel(long id, long excludedId, int maxLevel)protected voidresetLevel(long id)Methods inherited from class net.minecraft.world.chunk.light.ChunkLightProvider
addLightSource, checkBlock, doLightUpdates, enqueueSectionData, getCurrentLevelFromSection, getLevel, getLightLevel, getLightSection, getOpaqueShape, getRealisticOpacity, getStateForLighting, hasUpdates, isMarker, setColumnEnabled, setLevel, setRetainColumn, setSectionStatusMethods inherited from class net.minecraft.world.chunk.light.LevelPropagator
applyPendingUpdates, getPendingUpdateCount, hasPendingUpdates, propagateLevel, removePendingUpdate, removePendingUpdateIf, updateLevelMethods 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
-
DIRECTIONS
-
HORIZONTAL_DIRECTIONS
-
-
Constructor Details
-
ChunkSkyLightProvider
-
-
Method Details
-
getPropagatedLevel
protected int getPropagatedLevel(long sourceId, long targetId, int level)- Overrides:
getPropagatedLevelin classChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
-
propagateLevel
protected void propagateLevel(long id, int level, boolean decrease)- Specified by:
propagateLevelin classLevelPropagator
-
recalculateLevel
protected int recalculateLevel(long id, long excludedId, int maxLevel)- Overrides:
recalculateLevelin classChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
-
resetLevel
protected void resetLevel(long id)- Overrides:
resetLevelin classChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
-
displaySectionLevel
- Overrides:
displaySectionLevelin classChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
-