public final class ChunkSkyLightProvider extends ChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
ChunkLightingView.Empty
Modifier and Type | Field and Description |
---|---|
private static Direction[] |
DIRECTIONS |
private static Direction[] |
HORIZONTAL_DIRECTIONS |
chunkProvider, lightStorage, reusableBlockPos, type
Constructor and Description |
---|
ChunkSkyLightProvider(ChunkProvider chunkProvider) |
Modifier and Type | Method and Description |
---|---|
String |
displaySectionLevel(long sectionPos) |
protected int |
getPropagatedLevel(long sourceId,
long targetId,
int level) |
protected void |
propagateLevel(long id,
int level,
boolean decrease) |
protected int |
recalculateLevel(long id,
long excludedId,
int maxLevel) |
protected void |
resetLevel(long id) |
addLightSource, checkBlock, doLightUpdates, enqueueSectionData, getCurrentLevelFromSection, getLevel, getLightLevel, getLightSection, getOpaqueShape, getRealisticOpacity, getStateForLighting, hasUpdates, isMarker, setColumnEnabled, setLevel, setRetainColumn, setSectionStatus
applyPendingUpdates, getPendingUpdateCount, hasPendingUpdates, propagateLevel, removePendingUpdate, removePendingUpdateIf, updateLevel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setSectionStatus
private static final Direction[] DIRECTIONS
private static final Direction[] HORIZONTAL_DIRECTIONS
public ChunkSkyLightProvider(ChunkProvider chunkProvider)
protected int getPropagatedLevel(long sourceId, long targetId, int level)
getPropagatedLevel
in class ChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
protected void propagateLevel(long id, int level, boolean decrease)
propagateLevel
in class LevelPropagator
protected int recalculateLevel(long id, long excludedId, int maxLevel)
recalculateLevel
in class ChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
protected void resetLevel(long id)
resetLevel
in class ChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
@Environment(value=CLIENT) public String displaySectionLevel(long sectionPos)
displaySectionLevel
in class ChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>