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
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.longs.LongSetprivate booleanprivate static Direction[]private it.unimi.dsi.fastutil.longs.LongSetprivate it.unimi.dsi.fastutil.longs.LongSetprivate it.unimi.dsi.fastutil.longs.LongSetFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataLayercreateDataLayer(long p_75883_)protected voidenableLightSources(long p_75877_, boolean p_75878_)protected intgetLightValue(long p_75880_)protected intgetLightValue(long p_164458_, boolean p_164459_)protected booleanprotected booleanhasSectionsBelow(int p_75871_)protected booleanisAboveData(long p_75891_)protected booleanlightOnInSection(long p_75893_)protected voidmarkNewInconsistencies(LayerLightEngine<SkyLightSectionStorage.SkyDataLayerStorageMap,?> p_75873_, boolean p_75874_, boolean p_75875_)protected voidonNodeAdded(long p_75885_)protected voidonNodeRemoved(long p_75887_)private voidqueueAddSource(long p_75897_)private voidqueueRemoveSource(long p_75895_)private voidprivate static DataLayerrepeatFirstLayer(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, updateSectionStatusMethods inherited from class net.minecraft.server.level.SectionTracker
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, updateMethods 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:
getLightValuein classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
getLightValue
protected int getLightValue(long p_164458_, boolean p_164459_) -
onNodeAdded
protected void onNodeAdded(long p_75885_)- Overrides:
onNodeAddedin 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:
onNodeRemovedin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
enableLightSources
protected void enableLightSources(long p_75877_, boolean p_75878_)- Overrides:
enableLightSourcesin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
hasInconsistencies
protected boolean hasInconsistencies()- Overrides:
hasInconsistenciesin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
createDataLayer
- Overrides:
createDataLayerin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
repeatFirstLayer
-
markNewInconsistencies
protected void markNewInconsistencies(LayerLightEngine<SkyLightSectionStorage.SkyDataLayerStorageMap,?> p_75873_, boolean p_75874_, boolean p_75875_)- Overrides:
markNewInconsistenciesin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
hasSectionsBelow
protected boolean hasSectionsBelow(int p_75871_) -
isAboveData
protected boolean isAboveData(long p_75891_) -
lightOnInSection
protected boolean lightOnInSection(long p_75893_)
-