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 pSectionPos) protected int
protected int
getLightValue
(long pLevelPos) protected int
getLightValue
(long pPackedPos, boolean pUpdateAll) protected int
getTopSectionY
(long pSectionPos) protected boolean
hasLightDataAtOrBelow
(int pY) protected boolean
isAboveData
(long pSectionPos) protected void
onNodeAdded
(long pSectionPos) protected void
onNodeRemoved
(long pSectionPos) private static DataLayer
repeatFirstLayer
(DataLayer pDataLayer) 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 pLevelPos) - Specified by:
getLightValue
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
getLightValue
protected int getLightValue(long pPackedPos, boolean pUpdateAll) -
onNodeAdded
protected void onNodeAdded(long pSectionPos) - Overrides:
onNodeAdded
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
onNodeRemoved
protected void onNodeRemoved(long pSectionPos) - Overrides:
onNodeRemoved
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
createDataLayer
- Overrides:
createDataLayer
in classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
repeatFirstLayer
-
hasLightDataAtOrBelow
protected boolean hasLightDataAtOrBelow(int pY) -
isAboveData
protected boolean isAboveData(long pSectionPos) -
getTopSectionY
protected int getTopSectionY(long pSectionPos) -
getBottomSectionY
protected int getBottomSectionY()
-