net.minecraft.world.level.lighting

public abstract class LayerLightEngine<M extends DataLayerStorageMap<M>, S extends LayerLightSectionStorage<M>>

extends DynamicGraphMinFixedPoint implements LayerLightEventListener

All mapped superinterfaces:

LayerLightEventListener, LightEventListener

cwo
net.minecraft.world.level.lighting.LayerLightEngine
net.minecraft.class_3558
net.minecraft.world.chunk.light.ChunkLightProvider
net.minecraft.world.lighting.LightEngine
net.minecraft.server.v1_16_R1.LightEngineLayer

Field summary

Modifier and TypeField
private static final Direction[]
e
DIRECTIONS
field_16513
DIRECTIONS
field_215628_d
protected final LightChunkGetter
a
chunkSource
field_15795
chunkProvider
field_215625_a
protected final LightLayer
b
layer
field_15792
type
field_215626_b
protected final S
c
storage
field_15793
lightStorage
field_215627_c
private boolean
f
runningLightUpdates
field_15794
field_15794
field_215629_e
protected final BlockPos$MutableBlockPos
d
pos
field_19284
reusableBlockPos
field_215630_f
private final long[]
g
lastChunkPos
field_17397
cachedChunkPositions
field_215631_g
private final BlockGetter[]
h
lastChunk
field_17398
cachedChunks
field_215632_h

Constructor summary

ModifierConstructor
public (LightChunkGetter chunkProvider, LightLayer type, S lightStorage)

Method summary

Modifier and TypeMethod
protected void
f(long arg0)
checkNode(long arg0)
method_15491(long arg0)
resetLevel(long arg0)
func_215473_f(long arg0)
private BlockGetter
a(int arg0, int arg1)
getChunk(int arg0, int arg1)
method_17529(int arg0, int arg1)
getChunk(int chunkX, int chunkZ)
func_215615_a(int arg0, int arg1)
private void
d()
clearCache()
method_17530()
clearChunkCache()
func_215624_c()
protected BlockState
a(long arg0, org.apache.commons.lang3.mutable.MutableInt arg1)
getStateAndOpacity(long arg0, org.apache.commons.lang3.mutable.MutableInt arg1)
method_20479(long arg0, org.apache.commons.lang3.mutable.MutableInt arg1)
getStateForLighting(long pos, org.apache.commons.lang3.mutable.MutableInt arg1)
func_227468_a_(long arg0, org.apache.commons.lang3.mutable.MutableInt arg1)
protected VoxelShape
a(cfj arg0, long arg1, fz arg2)
getShape(BlockState arg0, long arg1, Direction arg2)
method_20710(class_2680 arg0, long arg1, class_2350 arg2)
getOpaqueShape(BlockState world, long pos, Direction facing)
func_223405_a(BlockState arg0, long arg1, Direction arg2)
public static int
a(bpg arg0, cfj arg1, fu arg2, cfj arg3, fu arg4, fz arg5, int arg6)
getLightBlockInto(BlockGetter arg0, BlockState arg1, BlockPos arg2, BlockState arg3, BlockPos arg4, Direction arg5, int arg6)
method_20049(class_1922 arg0, class_2680 arg1, class_2338 arg2, class_2680 arg3, class_2338 arg4, class_2350 arg5, int arg6)
getRealisticOpacity(BlockView world, BlockState state1, BlockPos pos1, BlockState state2, BlockPos pos2, Direction direction, int opacity2)
func_215613_a(IBlockReader arg0, BlockState arg1, BlockPos arg2, BlockState arg3, BlockPos arg4, Direction arg5, int arg6)
protected boolean
a(long arg0)
isSource(long arg0)
method_15494(long arg0)
isMarker(long arg0)
func_215485_a(long arg0)
protected int
a(long arg0, long arg1, int arg2)
getComputedLevel(long arg0, long arg1, int arg2)
method_15486(long arg0, long arg1, int arg2)
recalculateLevel(long arg0, long arg1, int arg2)
func_215477_a(long arg0, long arg1, int arg2)
protected int
c(long arg0)
getLevel(long arg0)
method_15480(long arg0)
getLevel(long arg0)
func_215471_c(long arg0)
protected int
a(chd arg0, long arg1)
getLevel(DataLayer arg0, long arg1)
method_15517(class_2804 arg0, long arg1)
getCurrentLevelFromArray(ChunkNibbleArray array, long blockPos)
func_215622_a(NibbleArray arg0, long arg1)
protected void
a(long arg0, int arg1)
setLevel(long arg0, int arg1)
method_15485(long arg0, int arg1)
setLevel(long arg0, int arg1)
func_215476_a(long arg0, int arg1)
protected int
b(long arg0, long arg1, int arg2)
computeLevelFromNeighbor(long arg0, long arg1, int arg2)
method_15488(long arg0, long arg1, int arg2)
getPropagatedLevel(long arg0, long arg1, int arg2)
func_215480_b(long arg0, long arg1, int arg2)
public boolean
a()
hasLightWork()
method_15518()
hasUpdates()
func_215619_a()
public int
a(int arg0, boolean arg1, boolean arg2)
runUpdates(int arg0, boolean arg1, boolean arg2)
method_15516(int arg0, boolean arg1, boolean arg2)
doLightUpdates(int maxSteps, boolean doSkylight, boolean skipEdgeLightPropagation)
func_215616_a(int arg0, boolean arg1, boolean arg2)
protected void
a(long arg0, chd arg1, boolean arg2)
queueSectionData(long arg0, DataLayer arg1, boolean arg2)
method_15515(long arg0, class_2804 arg1, boolean arg2)
setLightArray(long pos, ChunkNibbleArray lightArray, boolean arg2)
func_215621_a(long arg0, NibbleArray arg1, boolean arg2)
public DataLayer
a(go arg0)
getDataLayerData(SectionPos arg0)
method_15544(class_4076 arg0)
getLightArray(ChunkSectionPos arg0)
func_215612_a(SectionPos arg0)
public int
b(fu arg0)
getLightValue(BlockPos arg0)
method_15543(class_2338 arg0)
getLightLevel(BlockPos arg0)
func_215611_b(BlockPos arg0)
public void
a(fu arg0)
checkBlock(BlockPos arg0)
method_15513(class_2338 arg0)
checkBlock(BlockPos pos)
func_215617_a(BlockPos arg0)
public void
a(fu arg0, int arg1)
onBlockEmissionIncrease(BlockPos arg0, int arg1)
method_15514(class_2338 arg0, int arg1)
addLightSource(BlockPos pos, int level)
func_215623_a(BlockPos arg0, int arg1)
public void
a(go arg0, boolean arg1)
updateSectionStatus(SectionPos arg0, boolean arg1)
method_15551(class_4076 arg0, boolean arg1)
updateSectionStatus(ChunkSectionPos arg0, boolean arg1)
func_215566_a(SectionPos arg0, boolean arg1)
public void
a(bph arg0, boolean arg1)
enableLightSources(ChunkPos arg0, boolean arg1)
method_15512(class_1923 arg0, boolean arg1)
setLightEnabled(ChunkPos pos, boolean lightEnabled)
func_215620_a(ChunkPos arg0, boolean arg1)
public void
b(bph arg0, boolean arg1)
retainData(ChunkPos arg0, boolean arg1)
method_20599(class_1923 arg0, boolean arg1)
setRetainData(ChunkPos pos, boolean retainData)
func_223129_b(ChunkPos arg0, boolean arg1)
public String
b(long arg0)
getDebugData(long arg0)
method_22875(long arg0)
method_22875(long arg0)
func_215614_b(long arg0)