net.minecraft.world.level.lighting

public abstract class LayerLightSectionStorage<M extends DataLayerStorageMap<M>>

extends SectionTracker

dsz
net.minecraft.world.level.lighting.LayerLightSectionStorage
net.minecraft.class_3560
net.minecraft.world.chunk.light.LightStorage
net.minecraft.src.C_2679_
net.minecraft.world.level.lighting.LightEngineStorage

Field summary

Modifier and TypeField
protected static final int
a
LIGHT_AND_DATA
field_31710
field_31710
f_164440_
protected static final int
b
LIGHT_ONLY
field_31711
field_31711
f_164441_
protected static final int
c
EMPTY
field_31712
field_31712
f_164442_
protected static final DataLayer
d
EMPTY_DATA
field_15801
EMPTY
f_75727_
private static final Direction[]
n
DIRECTIONS
field_15799
DIRECTIONS
f_75737_
private final LightLayer
o
layer
field_15805
lightType
f_75738_
private final LightChunkGetter
p
chunkSource
field_15803
chunkProvider
f_75739_
protected final it.unimi.dsi.fastutil.longs.LongSet
e
dataSectionSet
field_15808
readySections
f_75728_
protected final it.unimi.dsi.fastutil.longs.LongSet
f
toMarkNoData
field_15797
markedNotReadySections
f_75729_
protected final it.unimi.dsi.fastutil.longs.LongSet
g
toMarkData
field_15804
markedReadySections
f_75730_
protected volatile M
h
visibleSectionData
field_15806
uncachedStorage
f_75731_
protected final M
i
updatingSectionData
field_15796
storage
f_75732_
protected final it.unimi.dsi.fastutil.longs.LongSet
j
changedSections
field_15802
dirtySections
f_75733_
protected final it.unimi.dsi.fastutil.longs.LongSet
k
sectionsAffectedByLightUpdates
field_16448
notifySections
f_75734_
protected final it.unimi.dsi.fastutil.longs.Long2ObjectMap<DataLayer>
l
queuedSections
field_15807
queuedSections
f_75735_
private final it.unimi.dsi.fastutil.longs.LongSet
q
untrustedSections
field_25621
queuedEdgeSections
f_75740_
private final it.unimi.dsi.fastutil.longs.LongSet
r
columnsToRetainQueuedDataFor
field_19342
columnsToRetain
f_75741_
private final it.unimi.dsi.fastutil.longs.LongSet
s
toRemove
field_15798
sectionsToRemove
f_75742_
protected volatile boolean
m
hasToRemove
field_15800
hasLightUpdates
f_75736_

Constructor summary

ModifierConstructor
protected (LightLayer lightType, LightChunkGetter chunkProvider, M lightData)

Method summary

Modifier and TypeMethod
protected boolean
g(long arg0)
storingLightForSection(long arg0)
method_15524(long arg0)
hasSection(long sectionPos)
m_75791_(long arg0)
protected DataLayer
a(long arg0, boolean arg1)
getDataLayer(long arg0, boolean arg1)
method_15522(long arg0, boolean arg1)
getLightSection(long sectionPos, boolean cached)
m_75758_(long p_75760_, boolean arg1)
protected DataLayer
a(M arg0, long arg1)
getDataLayer(M arg0, long arg1)
method_15533(M arg0, long arg1)
getLightSection(M storage, long sectionPos)
m_75761_(M p_75763_, long arg1)
public DataLayer
h(long arg0)
getDataLayerData(long arg0)
method_20533(long arg0)
getLightSection(long sectionPos)
m_75793_(long arg0)
protected abstract int
d(long arg0)
getLightValue(long arg0)
method_15538(long arg0)
getLight(long blockPos)
m_6181_(long arg0)
protected int
i(long arg0)
getStoredLevel(long arg0)
method_15537(long arg0)
get(long blockPos)
m_75795_(long arg0)
protected void
b(long arg0, int arg1)
setStoredLevel(long arg0, int arg1)
method_15525(long arg0, int arg1)
set(long blockPos, int value)
m_75772_(long p_75774_, int arg1)
protected int
c(long arg0)
getLevel(long arg0)
method_15480(long arg0)
getLevel(long arg0)
m_6172_(long arg0)
protected int
b(long arg0)
getLevelFromSource(long arg0)
method_18749(long arg0)
getInitialLevel(long arg0)
m_7409_(long arg0)
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_75750_, int arg1)
protected DataLayer
j(long arg0)
createDataLayer(long arg0)
method_15529(long arg0)
createSection(long sectionPos)
m_7667_(long arg0)
protected void
a(dsx<?, ?> arg0, long arg1)
clearQueuedSectionBlocks(LayerLightEngine<?, ?> arg0, long arg1)
method_15536(class_3558<?, ?> arg0, long arg1)
removeSection(ChunkLightProvider<?, ?> storage, long sectionPos)
m_75764_(C_2676_<?, ?> p_75766_, long arg1)
protected boolean
a()
hasInconsistencies()
method_15528()
hasLightUpdates()
m_6808_()
protected void
a(dsx<M, ?> arg0, boolean arg1, boolean arg2)
markNewInconsistencies(LayerLightEngine<M, ?> arg0, boolean arg1, boolean arg2)
method_15527(class_3558<M, ?> arg0, boolean arg1, boolean arg2)
updateLight(ChunkLightProvider<M, ?> lightProvider, boolean doSkylight, boolean skipEdgeLightPropagation)
m_6716_(C_2676_<M, ?> p_75768_, boolean p_75769_, boolean arg2)
private void
b(dsx<M, ?> arg0, long arg1)
checkEdgesForSection(LayerLightEngine<M, ?> arg0, long arg1)
method_29967(class_3558<M, ?> arg0, long arg1)
updateSection(ChunkLightProvider<M, ?> lightProvider, long sectionPos)
m_75777_(C_2676_<M, ?> p_75779_, long arg1)
protected void
k(long arg0)
onNodeAdded(long arg0)
method_15523(long arg0)
onLoadSection(long sectionPos)
m_6177_(long arg0)
protected void
l(long arg0)
onNodeRemoved(long arg0)
method_15534(long arg0)
onUnloadSection(long sectionPos)
m_6187_(long arg0)
protected void
b(long arg0, boolean arg1)
enableLightSources(long arg0, boolean arg1)
method_15535(long arg0, boolean arg1)
setColumnEnabled(long columnPos, boolean enabled)
m_7358_(long p_75776_, boolean arg1)
public void
c(long arg0, boolean arg1)
retainData(long arg0, boolean arg1)
method_20600(long arg0, boolean arg1)
setRetainColumn(long sectionPos, boolean retain)
m_75782_(long p_75784_, boolean arg1)
protected void
a(long arg0, dav arg1, boolean arg2)
queueSectionData(long arg0, DataLayer arg1, boolean arg2)
method_15532(long arg0, class_2804 arg1, boolean arg2)
enqueueSectionData(long sectionPos, ChunkNibbleArray array, boolean nonEdge)
m_75754_(long p_75756_, C_2131_ arg1, boolean arg2)
protected void
d(long arg0, boolean arg1)
updateSectionStatus(long arg0, boolean arg1)
method_15526(long arg0, boolean arg1)
setSectionStatus(long sectionPos, boolean notReady)
m_75787_(long p_75789_, boolean arg1)
protected void
d()
runAllUpdates()
method_15539()
updateAll()
m_75785_()
protected void
e()
swapSectionMap()
method_15530()
notifyChanges()
m_75790_()