Package net.minecraft.world.chunk.light
Class ChunkBlockLightProvider
java.lang.Object
net.minecraft.world.chunk.light.LevelPropagator
net.minecraft.world.chunk.light.ChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>
net.minecraft.world.chunk.light.ChunkBlockLightProvider
- All Implemented Interfaces:
ChunkLightingView
,LightingView
public final class ChunkBlockLightProvider extends ChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>
-
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[]
DIRECTIONS
private BlockPos.Mutable
mutablePos
Fields inherited from class net.minecraft.world.chunk.light.ChunkLightProvider
chunkProvider, lightStorage, reusableBlockPos, type
-
Constructor Summary
Constructors Constructor Description ChunkBlockLightProvider(ChunkProvider chunkProvider)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.world.chunk.light.ChunkLightProvider
checkBlock, displaySectionLevel, doLightUpdates, enqueueSectionData, getCurrentLevelFromSection, getLevel, getLightLevel, getLightSection, getOpaqueShape, getRealisticOpacity, getStateForLighting, hasUpdates, isMarker, resetLevel, setColumnEnabled, setLevel, setRetainColumn, setSectionStatus
Methods inherited from class net.minecraft.world.chunk.light.LevelPropagator
applyPendingUpdates, getPendingUpdateCount, hasPendingUpdates, propagateLevel, removePendingUpdate, removePendingUpdateIf, updateLevel
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
-
DIRECTIONS
-
mutablePos
-
-
Constructor Details
-
ChunkBlockLightProvider
-
-
Method Details
-
getLightSourceLuminance
private int getLightSourceLuminance(long blockPos) -
getPropagatedLevel
protected int getPropagatedLevel(long sourceId, long targetId, int level)- Overrides:
getPropagatedLevel
in classChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>
-
propagateLevel
protected void propagateLevel(long id, int level, boolean decrease)- Specified by:
propagateLevel
in classLevelPropagator
-
recalculateLevel
protected int recalculateLevel(long id, long excludedId, int maxLevel)- Overrides:
recalculateLevel
in classChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>
-
addLightSource
- Overrides:
addLightSource
in classChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>
-