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 classSkyLightStorage.StorageMap
-
Field Summary
Fields Modifier and Type Field Description private it.unimi.dsi.fastutil.longs.LongSetcolumnsWithSkySourcesprivate booleanhasSourceInconsistenciesprivate static Direction[]HORIZONTALSprivate it.unimi.dsi.fastutil.longs.LongSetsectionsToAddSourcesToprivate it.unimi.dsi.fastutil.longs.LongSetsectionsToRemoveSourcesFromprivate it.unimi.dsi.fastutil.longs.LongSetsectionsWithSources-
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 protectedSkyLightStorage(IChunkLightProvider p_i51288_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NibbleArraycreateDataLayer(long p_215530_1_)protected voidenableLightSources(long p_215526_1_, boolean p_215526_3_)protected intgetLightValue(long p_215525_1_)protected booleanhasInconsistencies()protected booleanhasLightSource(long p_215551_1_)protected booleanhasSectionsBelow(int p_215550_1_)protected booleanisAboveData(long p_215549_1_)protected booleanlightOnInSection(long p_215548_1_)protected voidmarkNewInconsistencies(LightEngine<SkyLightStorage.StorageMap,?> p_215522_1_, boolean p_215522_2_, boolean p_215522_3_)protected voidonNodeAdded(long p_215524_1_)protected voidonNodeRemoved(long p_215523_1_)private voidqueueAddSource(long p_223404_1_)private voidqueueRemoveSource(long p_223403_1_)private voidrecheckInconsistencyFlag()-
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:
getLightValuein classSectionLightStorage<SkyLightStorage.StorageMap>
-
onNodeAdded
protected void onNodeAdded(long p_215524_1_)
- Overrides:
onNodeAddedin 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:
onNodeRemovedin classSectionLightStorage<SkyLightStorage.StorageMap>
-
enableLightSources
protected void enableLightSources(long p_215526_1_, boolean p_215526_3_)- Overrides:
enableLightSourcesin classSectionLightStorage<SkyLightStorage.StorageMap>
-
hasInconsistencies
protected boolean hasInconsistencies()
- Overrides:
hasInconsistenciesin classSectionLightStorage<SkyLightStorage.StorageMap>
-
createDataLayer
protected NibbleArray createDataLayer(long p_215530_1_)
- Overrides:
createDataLayerin classSectionLightStorage<SkyLightStorage.StorageMap>
-
markNewInconsistencies
protected void markNewInconsistencies(LightEngine<SkyLightStorage.StorageMap,?> p_215522_1_, boolean p_215522_2_, boolean p_215522_3_)
- Overrides:
markNewInconsistenciesin 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_)
-
-