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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.LongSetprivate booleanprivate static final Direction[]private final it.unimi.dsi.fastutil.longs.LongSetprivate final it.unimi.dsi.fastutil.longs.LongSetprivate final it.unimi.dsi.fastutil.longs.LongSetFields inherited from class net.minecraft.world.lighting.SectionLightStorage
changedSections, dataSectionSet, EMPTY_DATA, hasToRemove, queuedSections, sectionsAffectedByLightUpdates, toMarkData, toMarkNoData, updatingSectionData, visibleSectionData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NibbleArraycreateDataLayer(long p_215530_1_) protected voidenableLightSources(long p_215526_1_, boolean p_215526_3_) protected intgetLightValue(long p_215525_1_) protected booleanprotected 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 voidMethods inherited from class net.minecraft.world.lighting.SectionLightStorage
clearQueuedSectionBlocks, getDataLayer, getDataLayer, getDataLayerData, getLevel, getLevelFromSource, getStoredLevel, queueSectionData, retainData, runAllUpdates, setLevel, setStoredLevel, storingLightForSection, swapSectionMap, updateSectionStatusMethods inherited from class net.minecraft.util.SectionDistanceGraph
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, updateMethods 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:
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
- 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_)
-