net.minecraft.world.level.lighting

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

implements LayerLightEventListener

ewf
net.minecraft.world.level.lighting.LightEngine
net.minecraft.class_3558
net.minecraft.unmapped.C_upkweuif
net.minecraft.world.chunk.light.ChunkLightProvider
net.minecraft.world.chunk.light.ChunkLightProvider

Field summary

Modifier and TypeField
public static final int
a
MAX_LEVEL
field_44729
f_lguzwiso
field_44729
MAX_LEVEL
protected static final int
b
MIN_OPACITY
field_44730
f_lvwsjqtw
field_44730
MIN_OPACITY
protected static final long
c
PULL_LIGHT_IN_ENTRY
field_44731
f_xjlhmzmi
field_44731
PULL_LIGHT_IN_ENTRY
private static final int
g
MIN_QUEUE_SIZE
field_44732
f_edtaifbh
field_44732
MIN_QUEUE_SIZE
protected static final Direction[]
d
PROPAGATION_DIRECTIONS
field_16513
f_arfcwfgy
DIRECTIONS
DIRECTIONS
protected final LightChunkGetter
e
chunkSource
field_15795
f_oietxybg
chunkProvider
chunkProvider
protected final S
f
storage
field_15793
f_pthtxwge
lightStorage
lightStorage
private final it.unimi.dsi.fastutil.longs.LongOpenHashSet
h
blockNodesToCheck
field_44733
f_vueaucjh
blockPositionsToCheck
blockNodesToCheck
private final it.unimi.dsi.fastutil.longs.LongArrayFIFOQueue
i
decreaseQueue
field_44734
f_mnzbramm
field_44734
decreaseQueue
private final it.unimi.dsi.fastutil.longs.LongArrayFIFOQueue
j
increaseQueue
field_44735
f_cvbmvasy
field_44735
increaseQueue
private static final int
k
CACHE_SIZE
field_31709
f_afxeukbh
field_31709
CACHE_SIZE
private final long[]
l
lastChunkPos
field_17397
f_lrychktf
cachedChunkPositions
cachedChunkPositions
private final LightChunk[]
m
lastChunk
field_17398
f_dsknzrus
cachedChunks
cachedChunks

Constructor summary

ModifierConstructor
protected (LightChunkGetter chunkProvider, S lightStorage)

Method summary

Modifier and TypeMethod
public static boolean
a(eah arg0, eah arg1)
hasDifferentLightProperties(BlockState arg0, BlockState arg1)
method_51561(class_2680 arg0, class_2680 arg1)
m_yinhjcxa(C_txtbiemp arg0, C_txtbiemp arg1)
needsLightUpdate(BlockState oldState, BlockState newState)
needsLightUpdate(BlockState oldState, BlockState newState)
public static int
a(eah arg0, eah arg1, ja arg2, int arg3)
getLightBlockInto(BlockState arg0, BlockState arg1, Direction arg2, int arg3)
method_20049(class_2680 arg0, class_2680 arg1, class_2350 arg2, int arg3)
m_ryzxffeg(C_txtbiemp arg0, C_txtbiemp arg1, C_xpuuihxf arg2, int arg3)
getRealisticOpacity(BlockState state1, BlockState state2, Direction direction, int opacity2)
getLightBlockInto(BlockState sourceState, BlockState targetState, Direction direction, int defaultValue)
public static VoxelShape
a(eah arg0, ja arg1)
getOcclusionShape(BlockState arg0, Direction arg1)
method_51562(class_2680 arg0, class_2350 arg1)
m_xzatufbh(C_txtbiemp arg0, C_xpuuihxf arg1)
getOpaqueShape(BlockState state, Direction direction)
getCullingFace(BlockState state, Direction direction)
protected static boolean
a(eah arg0)
isEmptyShape(BlockState arg0)
method_51563(class_2680 arg0)
m_qvdxwyuy(C_txtbiemp arg0)
isTrivialForLighting(BlockState blockState)
isEmptyShape(BlockState state)
protected BlockState
c(iu arg0)
getState(BlockPos arg0)
method_50018(class_2338 arg0)
m_vxkkvyil(C_hynzadkk arg0)
getStateForLighting(BlockPos pos)
getState(BlockPos pos)
protected int
b(eah arg0)
getOpacity(BlockState arg0)
method_50017(class_2680 arg0)
m_fyornymb(C_txtbiemp arg0)
getOpacity(BlockState state)
getOpacity(BlockState state)
protected boolean
a(eah arg0, eah arg1, ja arg2)
shapeOccludes(BlockState arg0, BlockState arg1, Direction arg2)
method_50016(class_2680 arg0, class_2680 arg1, class_2350 arg2)
m_dpvvjcdf(C_txtbiemp arg0, C_txtbiemp arg1, C_xpuuihxf arg2)
shapesCoverFullCube(BlockState source, BlockState target, Direction direction)
shapeOccludes(BlockState sourceState, BlockState targetState, Direction direction)
protected LightChunk
a(int arg0, int arg1)
getChunk(int arg0, int arg1)
method_17529(int arg0, int arg1)
m_pezdxydv(int arg0, int arg1)
getChunk(int chunkX, int chunkZ)
getChunk(int chunkX, int chunkZ)
private void
c()
clearChunkCache()
method_17530()
m_iaxlkdhu()
clearChunkCache()
clearChunkCache()
public void
a(iu arg0)
checkBlock(BlockPos arg0)
method_15513(class_2338 arg0)
m_idxlrtdh(C_hynzadkk arg0)
checkBlock(BlockPos arg0)
checkBlock(BlockPos arg0)
public void
a(long arg0, ecj arg1)
queueSectionData(long arg0, DataLayer arg1)
method_15515(long arg0, class_2804 arg1)
m_vfxjjknv(long arg0, C_cneaxdxg arg1)
enqueueSectionData(long sectionPos, ChunkNibbleArray lightArray)
enqueueSectionData(long sectionPos, ChunkNibbleArray lightArray)
public void
b(dih arg0, boolean arg1)
retainData(ChunkPos arg0, boolean arg1)
method_20599(class_1923 arg0, boolean arg1)
m_acljlcls(C_ynrszrtu arg0, boolean arg1)
setRetainColumn(ChunkPos pos, boolean retainData)
setRetainColumn(ChunkPos pos, boolean retain)
public void
a(jx arg0, boolean arg1)
updateSectionStatus(SectionPos arg0, boolean arg1)
method_15551(class_4076 arg0, boolean arg1)
m_myforzem(C_zubvmeye arg0, boolean arg1)
setSectionStatus(ChunkSectionPos arg0, boolean arg1)
setSectionStatus(ChunkSectionPos arg0, boolean arg1)
public void
a(dih arg0, boolean arg1)
setLightEnabled(ChunkPos arg0, boolean arg1)
method_15512(class_1923 arg0, boolean arg1)
m_kjgxwinj(C_ynrszrtu arg0, boolean arg1)
setColumnEnabled(ChunkPos arg0, boolean arg1)
setLightEnabled(ChunkPos arg0, boolean arg1)
public int
a()
runLightUpdates()
method_15516()
m_cmfibydp()
doLightUpdates()
runLightUpdates()
private int
d()
propagateIncreases()
method_51567()
m_vffsnuwj()
method_51567()
propagateIncreases()
private int
e()
propagateDecreases()
method_51570()
m_quncefjf()
method_51570()
propagateDecreases()
protected void
b(long arg0, long arg1)
enqueueDecrease(long arg0, long arg1)
method_51565(long arg0, long arg1)
m_ivirmkin(long arg0, long arg1)
method_51565(long blockPos, long flags)
enqueueDecrease(long blockPos, long state)
protected void
c(long arg0, long arg1)
enqueueIncrease(long arg0, long arg1)
method_51566(long arg0, long arg1)
m_etktdote(long arg0, long arg1)
method_51566(long blockPos, long flags)
enqueueIncrease(long blockPos, long state)
public boolean
I_()
hasLightWork()
method_15518()
m_mlkcmlsw()
hasUpdates()
hasUpdates()
public DataLayer
a(jx arg0)
getDataLayerData(SectionPos arg0)
method_15544(class_4076 arg0)
m_xfgdaccr(C_zubvmeye arg0)
getLightSection(ChunkSectionPos arg0)
getLightSection(ChunkSectionPos arg0)
public int
b(iu arg0)
getLightValue(BlockPos arg0)
method_15543(class_2338 arg0)
m_kzkaudjr(C_hynzadkk arg0)
getLightLevel(BlockPos arg0)
getLightLevel(BlockPos arg0)
public String
b(long arg0)
getDebugData(long arg0)
method_22875(long arg0)
m_vxlgbudj(long arg0)
displaySectionLevel(long sectionPos)
getSectionTypeId(long sectionPos)
public LayerLightSectionStorage$SectionType
c(long arg0)
getDebugSectionType(long arg0)
method_51568(long arg0)
m_nqytrssw(long arg0)
getStatus(long sectionPos)
getSectionType(long sectionPos)
protected abstract void
a(long arg0)
checkNode(long arg0)
method_51529(long arg0)
m_gvoflnzj(long arg0)
method_51529(long blockPos)
checkNode(long arg0)
protected abstract void
a(long arg0, long arg1, int arg2)
propagateIncrease(long arg0, long arg1, int arg2)
method_51531(long arg0, long arg1, int arg2)
m_ayxicyia(long arg0, long arg1, int arg2)
method_51531(long blockPos, long packed, int lightLevel)
propagateIncrease(long arg0, long arg1, int arg2)
protected abstract void
a(long arg0, long arg1)
propagateDecrease(long arg0, long arg1)
method_51530(long arg0, long arg1)
m_wcjydhhg(long arg0, long arg1)
method_51530(long blockPos, long packed)
propagateDecrease(long arg0, long arg1)