Package net.minecraft.world.lighting
Class SkyLightStorage
- java.lang.Object
-
- net.minecraft.world.lighting.LevelBasedGraph
-
- net.minecraft.util.SectionDistanceGraph
-
- net.minecraft.world.lighting.SectionLightStorage<SkyLightStorage.StorageMap>
-
- net.minecraft.world.lighting.SkyLightStorage
-
public class SkyLightStorage extends SectionLightStorage<SkyLightStorage.StorageMap>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SkyLightStorage.StorageMap
-
Field Summary
Fields Modifier and Type Field Description private it.unimi.dsi.fastutil.longs.LongSet
columnsWithSkySources
private boolean
hasSourceInconsistencies
private static Direction[]
HORIZONTALS
private it.unimi.dsi.fastutil.longs.LongSet
sectionsToAddSourcesTo
private it.unimi.dsi.fastutil.longs.LongSet
sectionsToRemoveSourcesFrom
private it.unimi.dsi.fastutil.longs.LongSet
sectionsWithSources
-
Fields inherited from class net.minecraft.world.lighting.SectionLightStorage
changedSections, dataSectionSet, EMPTY_DATA, hasToRemove, queuedSections, sectionsAffectedByLightUpdates, toMarkData, toMarkNoData, updatingSectionData, visibleSectionData
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SkyLightStorage(IChunkLightProvider p_i51288_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NibbleArray
createDataLayer(long p_215530_1_)
protected void
enableLightSources(long p_215526_1_, boolean p_215526_3_)
protected int
getLightValue(long p_215525_1_)
protected boolean
hasInconsistencies()
protected boolean
hasLightSource(long p_215551_1_)
protected boolean
hasSectionsBelow(int p_215550_1_)
protected boolean
isAboveData(long p_215549_1_)
protected boolean
lightOnInSection(long p_215548_1_)
protected void
markNewInconsistencies(LightEngine<SkyLightStorage.StorageMap,?> p_215522_1_, boolean p_215522_2_, boolean p_215522_3_)
protected void
onNodeAdded(long p_215524_1_)
protected void
onNodeRemoved(long p_215523_1_)
private void
queueAddSource(long p_223404_1_)
private void
queueRemoveSource(long p_223403_1_)
private void
recheckInconsistencyFlag()
-
Methods inherited from class net.minecraft.world.lighting.SectionLightStorage
clearQueuedSectionBlocks, getDataLayer, getDataLayer, getDataLayerData, getLevel, getLevelFromSource, getStoredLevel, queueSectionData, retainData, runAllUpdates, setLevel, setStoredLevel, storingLightForSection, swapSectionMap, updateSectionStatus
-
Methods inherited from class net.minecraft.util.SectionDistanceGraph
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, update
-
Methods inherited from class net.minecraft.world.lighting.LevelBasedGraph
checkEdge, checkNeighbor, checkNode, getQueueSize, hasWork, queuedUpdateSize, removeFromQueue, removeIf, runUpdates
-
-
-
-
Field Detail
-
HORIZONTALS
private static final Direction[] 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 Detail
-
SkyLightStorage
protected SkyLightStorage(IChunkLightProvider p_i51288_1_)
-
-
Method Detail
-
getLightValue
protected int getLightValue(long p_215525_1_)
- Specified by:
getLightValue
in classSectionLightStorage<SkyLightStorage.StorageMap>
-
onNodeAdded
protected void onNodeAdded(long p_215524_1_)
- Overrides:
onNodeAdded
in classSectionLightStorage<SkyLightStorage.StorageMap>
-
queueRemoveSource
private void queueRemoveSource(long p_223403_1_)
-
queueAddSource
private void queueAddSource(long p_223404_1_)
-
recheckInconsistencyFlag
private void recheckInconsistencyFlag()
-
onNodeRemoved
protected void onNodeRemoved(long p_215523_1_)
- Overrides:
onNodeRemoved
in classSectionLightStorage<SkyLightStorage.StorageMap>
-
enableLightSources
protected void enableLightSources(long p_215526_1_, boolean p_215526_3_)
- Overrides:
enableLightSources
in classSectionLightStorage<SkyLightStorage.StorageMap>
-
hasInconsistencies
protected boolean hasInconsistencies()
- Overrides:
hasInconsistencies
in classSectionLightStorage<SkyLightStorage.StorageMap>
-
createDataLayer
protected NibbleArray createDataLayer(long p_215530_1_)
- Overrides:
createDataLayer
in classSectionLightStorage<SkyLightStorage.StorageMap>
-
markNewInconsistencies
protected void markNewInconsistencies(LightEngine<SkyLightStorage.StorageMap,?> p_215522_1_, boolean p_215522_2_, boolean p_215522_3_)
- Overrides:
markNewInconsistencies
in classSectionLightStorage<SkyLightStorage.StorageMap>
-
hasSectionsBelow
protected boolean hasSectionsBelow(int p_215550_1_)
-
hasLightSource
protected boolean hasLightSource(long p_215551_1_)
-
isAboveData
protected boolean isAboveData(long p_215549_1_)
-
lightOnInSection
protected boolean lightOnInSection(long p_215548_1_)
-
-