Class SkyLightSectionStorage
java.lang.Object
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 final classNested classes/interfaces inherited from class LayerLightSectionStorage
LayerLightSectionStorage.SectionState, LayerLightSectionStorage.SectionType -
Field Summary
Fields inherited from class LayerLightSectionStorage
changedSections, chunkSource, hasInconsistencies, queuedSections, sectionsAffectedByLightUpdates, sectionStates, updatingSectionData, visibleSectionData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataLayercreateDataLayer(long sectionNode) protected intprotected intgetLightValue(long blockNode) protected intgetLightValue(long blockNode, boolean updating) protected intgetTopSectionY(long zeroNode) protected booleanhasLightDataAtOrBelow(int sectionY) protected booleanisAboveData(long sectionNode) protected voidonNodeAdded(long sectionNode) protected voidonNodeRemoved(long sectionNode) private static DataLayerrepeatFirstLayer(DataLayer data) Methods inherited from class LayerLightSectionStorage
getDataLayer, getDataLayer, getDataLayerData, getDataLayerToWrite, getDebugSectionType, getStoredLevel, hasInconsistencies, lightOnInColumn, lightOnInSection, markNewInconsistencies, markSectionAndNeighborsAsAffected, putSectionState, queueSectionData, retainData, setLightEnabled, setStoredLevel, storingLightForSection, swapSectionMap, updateSectionStatus
-
Constructor Details
-
SkyLightSectionStorage
-
-
Method Details
-
getLightValue
protected int getLightValue(long blockNode) - Specified by:
getLightValuein classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
getLightValue
protected int getLightValue(long blockNode, boolean updating) -
onNodeAdded
protected void onNodeAdded(long sectionNode) - Overrides:
onNodeAddedin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
onNodeRemoved
protected void onNodeRemoved(long sectionNode) - Overrides:
onNodeRemovedin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
createDataLayer
- Overrides:
createDataLayerin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
repeatFirstLayer
-
hasLightDataAtOrBelow
protected boolean hasLightDataAtOrBelow(int sectionY) -
isAboveData
protected boolean isAboveData(long sectionNode) -
getTopSectionY
protected int getTopSectionY(long zeroNode) -
getBottomSectionY
protected int getBottomSectionY()
-