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 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 DataLayercreateDataLayer(long pSectionPos) protected intprotected intgetLightValue(long pLevelPos) protected intgetLightValue(long pPackedPos, boolean pUpdateAll) protected intgetTopSectionY(long pSectionPos) protected booleanhasLightDataAtOrBelow(int pY) protected booleanisAboveData(long pSectionPos) protected voidonNodeAdded(long pSectionPos) protected voidonNodeRemoved(long p_75887_) private static DataLayerrepeatFirstLayer(DataLayer pDataLayer) Methods inherited from class net.minecraft.world.level.lighting.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 pLevelPos) - Specified by:
getLightValuein classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
getLightValue
protected int getLightValue(long pPackedPos, boolean pUpdateAll) -
onNodeAdded
protected void onNodeAdded(long pSectionPos) - Overrides:
onNodeAddedin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
onNodeRemoved
protected void onNodeRemoved(long p_75887_) - Overrides:
onNodeRemovedin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
createDataLayer
- Overrides:
createDataLayerin 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()
-