Class SkyLightSectionStorage
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.server.level.SectionTracker
net.minecraft.world.level.lighting.LayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
net.minecraft.world.level.lighting.SkyLightSectionStorage
public class SkyLightSectionStorage
extends LayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.LongSet
private boolean
private static final Direction[]
private final it.unimi.dsi.fastutil.longs.LongSet
private final it.unimi.dsi.fastutil.longs.LongSet
private final it.unimi.dsi.fastutil.longs.LongSet
Fields inherited from class net.minecraft.world.level.lighting.LayerLightSectionStorage
changedSections, dataSectionSet, EMPTY, EMPTY_DATA, hasToRemove, LIGHT_AND_DATA, LIGHT_ONLY, queuedSections, sectionsAffectedByLightUpdates, toMarkData, toMarkNoData, updatingSectionData, visibleSectionData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DataLayer
createDataLayer
(long p_75883_) protected void
enableLightSources
(long p_75877_, boolean p_75878_) protected int
getLightValue
(long p_75880_) protected int
getLightValue
(long p_164458_, boolean p_164459_) protected boolean
protected boolean
hasSectionsBelow
(int p_75871_) protected boolean
isAboveData
(long p_75891_) protected boolean
lightOnInSection
(long p_75893_) protected void
markNewInconsistencies
(LayerLightEngine<SkyLightSectionStorage.SkyDataLayerStorageMap, ?> p_75873_, boolean p_75874_, boolean p_75875_) protected void
onNodeAdded
(long p_75885_) protected void
onNodeRemoved
(long p_75887_) private void
queueAddSource
(long p_75897_) private void
queueRemoveSource
(long p_75895_) private void
private static DataLayer
repeatFirstLayer
(DataLayer p_182513_) Methods inherited from class net.minecraft.world.level.lighting.LayerLightSectionStorage
clearQueuedSectionBlocks, getDataLayer, getDataLayer, getDataLayerData, getLevel, getLevelFromSource, getStoredLevel, queueSectionData, retainData, runAllUpdates, setLevel, setStoredLevel, storingLightForSection, swapSectionMap, updateSectionStatus
Methods inherited from class net.minecraft.server.level.SectionTracker
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, update
Methods inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
checkEdge, checkNeighbor, checkNode, getQueueSize, hasWork, queuedUpdateSize, removeFromQueue, removeIf, runUpdates
-
Field Details
-
HORIZONTALS
-
sectionsWithSources
private final it.unimi.dsi.fastutil.longs.LongSet sectionsWithSources -
sectionsToAddSourcesTo
private final it.unimi.dsi.fastutil.longs.LongSet sectionsToAddSourcesTo -
sectionsToRemoveSourcesFrom
private final it.unimi.dsi.fastutil.longs.LongSet sectionsToRemoveSourcesFrom -
columnsWithSkySources
private final it.unimi.dsi.fastutil.longs.LongSet columnsWithSkySources -
hasSourceInconsistencies
private volatile boolean hasSourceInconsistencies
-
-
Constructor Details
-
SkyLightSectionStorage
-
-
Method Details
-
getLightValue
protected int getLightValue(long p_75880_) - Specified by:
getLightValue
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
getLightValue
protected int getLightValue(long p_164458_, boolean p_164459_) -
onNodeAdded
protected void onNodeAdded(long p_75885_) - Overrides:
onNodeAdded
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
queueRemoveSource
private void queueRemoveSource(long p_75895_) -
queueAddSource
private void queueAddSource(long p_75897_) -
recheckInconsistencyFlag
private void recheckInconsistencyFlag() -
onNodeRemoved
protected void onNodeRemoved(long p_75887_) - Overrides:
onNodeRemoved
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
enableLightSources
protected void enableLightSources(long p_75877_, boolean p_75878_) - Overrides:
enableLightSources
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
hasInconsistencies
protected boolean hasInconsistencies()- Overrides:
hasInconsistencies
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
createDataLayer
- Overrides:
createDataLayer
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
repeatFirstLayer
-
markNewInconsistencies
protected void markNewInconsistencies(LayerLightEngine<SkyLightSectionStorage.SkyDataLayerStorageMap, ?> p_75873_, boolean p_75874_, boolean p_75875_) - Overrides:
markNewInconsistencies
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
hasSectionsBelow
protected boolean hasSectionsBelow(int p_75871_) -
isAboveData
protected boolean isAboveData(long p_75891_) -
lightOnInSection
protected boolean lightOnInSection(long p_75893_)
-