Package net.minecraft.world.chunk.light
Class SkyLightStorage
java.lang.Object
net.minecraft.world.chunk.light.LevelPropagator
net.minecraft.world.SectionDistanceLevelPropagator
net.minecraft.world.chunk.light.LightStorage<SkyLightStorage.Data>
net.minecraft.world.chunk.light.SkyLightStorage
public class SkyLightStorage extends LightStorage<SkyLightStorage.Data>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSkyLightStorage.Data -
Field Summary
Fields Modifier and Type Field Description private LongSetenabledColumnsprivate LongSetfield_15820private booleanhasUpdatesprivate static Direction[]LIGHT_REDUCTION_DIRECTIONSprivate LongSetsectionsToRemoveprivate LongSetsectionsToUpdateFields inherited from class net.minecraft.world.chunk.light.LightStorage
dirtySections, EMPTY, hasLightUpdates, markedNotReadySections, markedReadySections, notifySections, queuedSections, readySections, storage, uncachedStorage -
Constructor Summary
Constructors Modifier Constructor Description protectedSkyLightStorage(ChunkProvider chunkProvider) -
Method Summary
Modifier and Type Method Description private voidcheckForUpdates()protected ChunkNibbleArraycreateSection(long sectionPos)private voidenqueueAddSection(long sectionPos)private voidenqueueRemoveSection(long sectionPos)protected intgetLight(long blockPos)protected booleanhasLightUpdates()protected booleanisAboveMinHeight(int sectionY)protected booleanisAtOrAboveTopmostSection(long sectionPos)protected booleanisSectionEnabled(long sectionPos)protected intmethod_31931(long long2, boolean bool)protected voidonLoadSection(long sectionPos)protected voidonUnloadSection(long sectionPos)protected voidsetColumnEnabled(long columnPos, boolean enabled)protected voidupdateLight(ChunkLightProvider<SkyLightStorage.Data,?> lightProvider, boolean doSkylight, boolean skipEdgeLightPropagation)Methods inherited from class net.minecraft.world.chunk.light.LightStorage
enqueueSectionData, get, getInitialLevel, getLevel, getLightSection, getLightSection, getLightSection, hasSection, notifyChanges, removeSection, set, setLevel, setRetainColumn, setSectionStatus, updateAllMethods inherited from class net.minecraft.world.SectionDistanceLevelPropagator
getPropagatedLevel, isMarker, propagateLevel, recalculateLevel, updateMethods inherited from class net.minecraft.world.chunk.light.LevelPropagator
applyPendingUpdates, getPendingUpdateCount, hasPendingUpdates, propagateLevel, removePendingUpdate, removePendingUpdateIf, resetLevel, updateLevel
-
Field Details
-
LIGHT_REDUCTION_DIRECTIONS
-
field_15820
-
sectionsToUpdate
-
sectionsToRemove
-
enabledColumns
-
hasUpdates
private volatile boolean hasUpdates
-
-
Constructor Details
-
SkyLightStorage
-
-
Method Details
-
getLight
protected int getLight(long blockPos)- Specified by:
getLightin classLightStorage<SkyLightStorage.Data>
-
method_31931
protected int method_31931(long long2, boolean bool) -
onLoadSection
protected void onLoadSection(long sectionPos)- Overrides:
onLoadSectionin classLightStorage<SkyLightStorage.Data>
-
enqueueRemoveSection
private void enqueueRemoveSection(long sectionPos) -
enqueueAddSection
private void enqueueAddSection(long sectionPos) -
checkForUpdates
private void checkForUpdates() -
onUnloadSection
protected void onUnloadSection(long sectionPos)- Overrides:
onUnloadSectionin classLightStorage<SkyLightStorage.Data>
-
setColumnEnabled
protected void setColumnEnabled(long columnPos, boolean enabled)- Overrides:
setColumnEnabledin classLightStorage<SkyLightStorage.Data>
-
hasLightUpdates
protected boolean hasLightUpdates()- Overrides:
hasLightUpdatesin classLightStorage<SkyLightStorage.Data>
-
createSection
- Overrides:
createSectionin classLightStorage<SkyLightStorage.Data>
-
updateLight
protected void updateLight(ChunkLightProvider<SkyLightStorage.Data,?> lightProvider, boolean doSkylight, boolean skipEdgeLightPropagation)- Overrides:
updateLightin classLightStorage<SkyLightStorage.Data>
-
isAboveMinHeight
protected boolean isAboveMinHeight(int sectionY) -
isAtOrAboveTopmostSection
protected boolean isAtOrAboveTopmostSection(long sectionPos) -
isSectionEnabled
protected boolean isSectionEnabled(long sectionPos)
-