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 sectionPos) protected intprotected intgetLightValue(long levelPos) protected intgetLightValue(long packedPos, boolean updateAll) protected intgetTopSectionY(long sectionPos) protected booleanhasLightDataAtOrBelow(int y) protected booleanisAboveData(long sectionPos) protected voidonNodeAdded(long sectionPos) protected voidonNodeRemoved(long sectionPos) private static DataLayerrepeatFirstLayer(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:
getLightValuein classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
getLightValue
protected int getLightValue(long packedPos, boolean updateAll) -
onNodeAdded
protected void onNodeAdded(long sectionPos) - Overrides:
onNodeAddedin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
onNodeRemoved
protected void onNodeRemoved(long sectionPos) - Overrides:
onNodeRemovedin classLayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
-
createDataLayer
- Overrides:
createDataLayerin 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()
-