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

dil
net.minecraft.world.level.lighting.LayerLightEngine
net.minecraft.class_3558
net.minecraft.world.chunk.light.ChunkLightProvider
net.minecraft.src.C_2676_
net.minecraft.world.level.lighting.LightEngineLayer

Field summary

Modifier and TypeField
public static final long
a
SELF_SOURCE
field_31708
field_31708
f_164424_
private static final Direction[]
f
DIRECTIONS
field_16513
DIRECTIONS
f_75634_
protected final LightChunkGetter
b
chunkSource
field_15795
chunkProvider
f_75630_
protected final LightLayer
c
layer
field_15792
type
f_75631_
protected final S
d
storage
field_15793
lightStorage
f_75632_
private boolean
g
runningLightUpdates
field_15794
field_15794
f_75635_
protected final BlockPos$MutableBlockPos
e
pos
field_19284
reusableBlockPos
f_75633_
private static final int
h
CACHE_SIZE
field_31709
field_31709
f_164425_
private final long[]
i
lastChunkPos
field_17397
cachedChunkPositions
f_75636_
private final BlockGetter[]
j
lastChunk
field_17398
cachedChunks
f_75637_

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)
m_6185_(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)
m_75644_(int p_75646_, int arg1)
private void
d()
clearCache()
method_17530()
clearChunkCache()
m_75706_()
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)
m_75664_(long p_75666_, org.apache.commons.lang3.mutable.MutableInt arg1)
protected VoxelShape
a(cov arg0, long arg1, go 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)
m_75678_(C_2064_ p_75680_, long p_75681_, C_4687_ arg2)
public static int
a(cab arg0, cov arg1, gj arg2, cov arg3, gj arg4, go 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)
m_75667_(C_1559_ p_75668_, C_2064_ p_75669_, C_4675_ p_75670_, C_2064_ p_75671_, C_4675_ p_75672_, C_4687_ p_75673_, int p_75674_)
protected boolean
a(long arg0)
isSource(long arg0)
method_15494(long arg0)
isMarker(long arg0)
m_6163_(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)
m_6357_(long p_75658_, long arg1, int arg2)
protected int
c(long arg0)
getLevel(long arg0)
method_15480(long arg0)
getLevel(long arg0)
m_6172_(long arg0)
protected int
a(cqu arg0, long arg1)
getLevel(DataLayer arg0, long arg1)
method_15517(class_2804 arg0, long arg1)
getCurrentLevelFromSection(ChunkNibbleArray section, long blockPos)
m_75682_(C_2131_ p_75684_, 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)
m_7351_(long p_75655_, 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)
m_6359_(long p_75697_, long arg1, int arg2)
public boolean
A_()
hasLightWork()
method_15518()
hasUpdates()
m_142182_()
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 arg0, boolean arg1, boolean arg2)
m_142528_(int p_75649_, boolean p_75650_, boolean arg2)
protected void
a(long arg0, cqu arg1, boolean arg2)
queueSectionData(long arg0, DataLayer arg1, boolean arg2)
method_15515(long arg0, class_2804 arg1, boolean arg2)
enqueueSectionData(long sectionPos, ChunkNibbleArray lightArray, boolean nonEdge)
m_75660_(long p_75662_, C_2131_ arg1, boolean arg2)
public DataLayer
a(hf arg0)
getDataLayerData(SectionPos arg0)
method_15544(class_4076 arg0)
getLightSection(ChunkSectionPos arg0)
m_8079_(C_4710_ arg0)
public int
b(gj arg0)
getLightValue(BlockPos arg0)
method_15543(class_2338 arg0)
getLightLevel(BlockPos arg0)
m_7768_(C_4675_ arg0)
public String
b(long arg0)
getDebugData(long arg0)
method_22875(long arg0)
displaySectionLevel(long sectionPos)
m_6647_(long arg0)
public void
a(gj arg0)
checkBlock(BlockPos arg0)
method_15513(class_2338 arg0)
checkBlock(BlockPos arg0)
m_142202_(C_4675_ arg0)
public void
a(gj arg0, int arg1)
onBlockEmissionIncrease(BlockPos arg0, int arg1)
method_15514(class_2338 arg0, int arg1)
addLightSource(BlockPos arg0, int arg1)
m_142519_(C_4675_ p_75688_, int arg1)
public void
a(hf arg0, boolean arg1)
updateSectionStatus(SectionPos arg0, boolean arg1)
method_15551(class_4076 arg0, boolean arg1)
setSectionStatus(ChunkSectionPos arg0, boolean arg1)
m_6191_(C_4710_ p_75693_, boolean arg1)
public void
a(cac arg0, boolean arg1)
enableLightSources(ChunkPos arg0, boolean arg1)
method_15512(class_1923 arg0, boolean arg1)
setColumnEnabled(ChunkPos arg0, boolean arg1)
m_141940_(C_1560_ p_75677_, boolean arg1)
public void
b(cac arg0, boolean arg1)
retainData(ChunkPos arg0, boolean arg1)
method_20599(class_1923 arg0, boolean arg1)
setRetainColumn(ChunkPos pos, boolean retainData)
m_75699_(C_1560_ p_75701_, boolean arg1)