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
-
Nested Class Summary
-
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.lighting.SectionLightStorage
changedSections, dataSectionSet, EMPTY_DATA, hasToRemove, queuedSections, sectionsAffectedByLightUpdates, toMarkData, toMarkNoData, updatingSectionData, visibleSectionData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
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
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 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
-
SkyLightStorage
-
-
Method Details
-
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
- 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_)
-