public final class ChunkBlockLightProvider extends ChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>
ChunkLightingView.Empty
Modifier and Type | Field and Description |
---|---|
private static Direction[] |
DIRECTIONS |
private BlockPos.Mutable |
mutablePos |
chunkProvider, lightStorage, reusableBlockPos, type
Constructor and Description |
---|
ChunkBlockLightProvider(ChunkProvider chunkProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addLightSource(BlockPos pos,
int level) |
private int |
getLightSourceLuminance(long blockPos) |
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) |
checkBlock, displaySectionLevel, doLightUpdates, enqueueSectionData, getCurrentLevelFromSection, getLevel, getLightLevel, getLightSection, getOpaqueShape, getRealisticOpacity, getStateForLighting, hasUpdates, isMarker, resetLevel, 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 final BlockPos.Mutable mutablePos
public ChunkBlockLightProvider(ChunkProvider chunkProvider)
private int getLightSourceLuminance(long blockPos)
protected int getPropagatedLevel(long sourceId, long targetId, int level)
getPropagatedLevel
in class ChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>
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<BlockLightStorage.Data,BlockLightStorage>
public void addLightSource(BlockPos pos, int level)
addLightSource
in class ChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>