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 class
Nested classes/interfaces inherited from class net.minecraft.world.level.lighting.LayerLightSectionStorage
LayerLightSectionStorage.SectionState, LayerLightSectionStorage.SectionType
-
Field Summary
Fields inherited from class net.minecraft.world.level.lighting.LayerLightSectionStorage
changedSections, chunkSource, hasInconsistencies, queuedSections, sectionsAffectedByLightUpdates, sectionStates, updatingSectionData, visibleSectionData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataLayer
createDataLayer
(long sectionPos) protected int
protected int
getLightValue
(long levelPos) protected int
getLightValue
(long packedPos, boolean updateAll) protected int
getTopSectionY
(long sectionPos) protected boolean
hasLightDataAtOrBelow
(int y) protected boolean
isAboveData
(long sectionPos) protected void
onNodeAdded
(long sectionPos) protected void
onNodeRemoved
(long sectionPos) private static DataLayer
repeatFirstLayer
(DataLayer dataLayer) Methods inherited from class net.minecraft.world.level.lighting.LayerLightSectionStorage
getDataLayer, getDataLayer, getDataLayerData, getDataLayerToWrite, getDebugSectionType, getStoredLevel, hasInconsistencies, lightOnInSection, markNewInconsistencies, markSectionAndNeighborsAsAffected, putSectionState, queueSectionData, retainData, setLightEnabled, setStoredLevel, storingLightForSection, swapSectionMap, updateSectionStatus
-
Constructor Details
-
SkyLightSectionStorage
-
-
Method Details
-
getLightValue
protected int getLightValue(long levelPos) - Specified by:
getLightValue
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
getLightValue
protected int getLightValue(long packedPos, boolean updateAll) -
onNodeAdded
protected void onNodeAdded(long sectionPos) - Overrides:
onNodeAdded
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
onNodeRemoved
protected void onNodeRemoved(long sectionPos) - Overrides:
onNodeRemoved
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
createDataLayer
- Overrides:
createDataLayer
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
repeatFirstLayer
-
hasLightDataAtOrBelow
protected boolean hasLightDataAtOrBelow(int y) -
isAboveData
protected boolean isAboveData(long sectionPos) -
getTopSectionY
protected int getTopSectionY(long sectionPos) -
getBottomSectionY
protected int getBottomSectionY()
-