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>
- Mappings:
Namespace Name official dafintermediary net/minecraft/class_3569named net/minecraft/world/chunk/light/SkyLightStorage
-
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
- Mappings:
Namespace Name Mixin selector official kLdaf;k:[Lgc;intermediary field_15818Lnet/minecraft/class_3569;field_15818:[Lnet/minecraft/class_2350;named LIGHT_REDUCTION_DIRECTIONSLnet/minecraft/world/chunk/light/SkyLightStorage;LIGHT_REDUCTION_DIRECTIONS:[Lnet/minecraft/util/math/Direction;
-
field_15820
- Mappings:
Namespace Name Mixin selector official lLdaf;l:Lit/unimi/dsi/fastutil/longs/LongSet;intermediary field_15820Lnet/minecraft/class_3569;field_15820:Lit/unimi/dsi/fastutil/longs/LongSet;named field_15820Lnet/minecraft/world/chunk/light/SkyLightStorage;field_15820:Lit/unimi/dsi/fastutil/longs/LongSet;
-
sectionsToUpdate
- Mappings:
Namespace Name Mixin selector official mLdaf;m:Lit/unimi/dsi/fastutil/longs/LongSet;intermediary field_15815Lnet/minecraft/class_3569;field_15815:Lit/unimi/dsi/fastutil/longs/LongSet;named sectionsToUpdateLnet/minecraft/world/chunk/light/SkyLightStorage;sectionsToUpdate:Lit/unimi/dsi/fastutil/longs/LongSet;
-
sectionsToRemove
- Mappings:
Namespace Name Mixin selector official nLdaf;n:Lit/unimi/dsi/fastutil/longs/LongSet;intermediary field_15816Lnet/minecraft/class_3569;field_15816:Lit/unimi/dsi/fastutil/longs/LongSet;named sectionsToRemoveLnet/minecraft/world/chunk/light/SkyLightStorage;sectionsToRemove:Lit/unimi/dsi/fastutil/longs/LongSet;
-
enabledColumns
- Mappings:
Namespace Name Mixin selector official oLdaf;o:Lit/unimi/dsi/fastutil/longs/LongSet;intermediary field_15817Lnet/minecraft/class_3569;field_15817:Lit/unimi/dsi/fastutil/longs/LongSet;named enabledColumnsLnet/minecraft/world/chunk/light/SkyLightStorage;enabledColumns:Lit/unimi/dsi/fastutil/longs/LongSet;
-
hasUpdates
private volatile boolean hasUpdates- Mappings:
Namespace Name Mixin selector official pLdaf;p:Zintermediary field_15819Lnet/minecraft/class_3569;field_15819:Znamed hasUpdatesLnet/minecraft/world/chunk/light/SkyLightStorage;hasUpdates:Z
-
-
Constructor Details
-
SkyLightStorage
- Mappings:
Namespace Name Mixin selector official <init>Ldaf;<init>(Lcjy;)Vintermediary <init>Lnet/minecraft/class_3569;<init>(Lnet/minecraft/class_2823;)Vnamed <init>Lnet/minecraft/world/chunk/light/SkyLightStorage;<init>(Lnet/minecraft/world/chunk/ChunkProvider;)V
-
-
Method Details
-
getLight
protected int getLight(long blockPos)- Specified by:
getLightin classLightStorage<SkyLightStorage.Data>- Mappings:
Namespace Name Mixin selector official dLdab;d(J)Iintermediary method_15538Lnet/minecraft/class_3560;method_15538(J)Inamed getLightLnet/minecraft/world/chunk/light/LightStorage;getLight(J)I
-
method_31931
protected int method_31931(long long2, boolean bool)- Mappings:
Namespace Name Mixin selector official eLdaf;e(JZ)Iintermediary method_31931Lnet/minecraft/class_3569;method_31931(JZ)Inamed method_31931Lnet/minecraft/world/chunk/light/SkyLightStorage;method_31931(JZ)I
-
onLoadSection
protected void onLoadSection(long sectionPos)- Overrides:
onLoadSectionin classLightStorage<SkyLightStorage.Data>- Mappings:
Namespace Name Mixin selector official kLdab;k(J)Vintermediary method_15523Lnet/minecraft/class_3560;method_15523(J)Vnamed onLoadSectionLnet/minecraft/world/chunk/light/LightStorage;onLoadSection(J)V
-
enqueueRemoveSection
private void enqueueRemoveSection(long sectionPos)- Mappings:
Namespace Name Mixin selector official oLdaf;o(J)Vintermediary method_20809Lnet/minecraft/class_3569;method_20809(J)Vnamed enqueueRemoveSectionLnet/minecraft/world/chunk/light/SkyLightStorage;enqueueRemoveSection(J)V
-
enqueueAddSection
private void enqueueAddSection(long sectionPos)- Mappings:
Namespace Name Mixin selector official pLdaf;p(J)Vintermediary method_20810Lnet/minecraft/class_3569;method_20810(J)Vnamed enqueueAddSectionLnet/minecraft/world/chunk/light/SkyLightStorage;enqueueAddSection(J)V
-
checkForUpdates
private void checkForUpdates()- Mappings:
Namespace Name Mixin selector official fLdaf;f()Vintermediary method_15569Lnet/minecraft/class_3569;method_15569()Vnamed checkForUpdatesLnet/minecraft/world/chunk/light/SkyLightStorage;checkForUpdates()V
-
onUnloadSection
protected void onUnloadSection(long sectionPos)- Overrides:
onUnloadSectionin classLightStorage<SkyLightStorage.Data>- Mappings:
Namespace Name Mixin selector official lLdab;l(J)Vintermediary method_15534Lnet/minecraft/class_3560;method_15534(J)Vnamed onUnloadSectionLnet/minecraft/world/chunk/light/LightStorage;onUnloadSection(J)V
-
setColumnEnabled
protected void setColumnEnabled(long columnPos, boolean enabled)- Overrides:
setColumnEnabledin classLightStorage<SkyLightStorage.Data>- Mappings:
Namespace Name Mixin selector official bLdab;b(JZ)Vintermediary method_15535Lnet/minecraft/class_3560;method_15535(JZ)Vnamed setColumnEnabledLnet/minecraft/world/chunk/light/LightStorage;setColumnEnabled(JZ)V
-
hasLightUpdates
protected boolean hasLightUpdates()- Overrides:
hasLightUpdatesin classLightStorage<SkyLightStorage.Data>- Mappings:
Namespace Name Mixin selector official aLdab;a()Zintermediary method_15528Lnet/minecraft/class_3560;method_15528()Znamed hasLightUpdatesLnet/minecraft/world/chunk/light/LightStorage;hasLightUpdates()Z
-
createSection
- Overrides:
createSectionin classLightStorage<SkyLightStorage.Data>- Mappings:
Namespace Name Mixin selector official jLdab;j(J)Lcjq;intermediary method_15529Lnet/minecraft/class_3560;method_15529(J)Lnet/minecraft/class_2804;named createSectionLnet/minecraft/world/chunk/light/LightStorage;createSection(J)Lnet/minecraft/world/chunk/ChunkNibbleArray;
-
updateLight
protected void updateLight(ChunkLightProvider<SkyLightStorage.Data,?> lightProvider, boolean doSkylight, boolean skipEdgeLightPropagation)- Overrides:
updateLightin classLightStorage<SkyLightStorage.Data>- Mappings:
Namespace Name Mixin selector official aLdab;a(Lczz;ZZ)Vintermediary method_15527Lnet/minecraft/class_3560;method_15527(Lnet/minecraft/class_3558;ZZ)Vnamed updateLightLnet/minecraft/world/chunk/light/LightStorage;updateLight(Lnet/minecraft/world/chunk/light/ChunkLightProvider;ZZ)V
-
isAboveMinHeight
protected boolean isAboveMinHeight(int sectionY)- Mappings:
Namespace Name Mixin selector official aLdaf;a(I)Zintermediary method_15567Lnet/minecraft/class_3569;method_15567(I)Znamed isAboveMinHeightLnet/minecraft/world/chunk/light/SkyLightStorage;isAboveMinHeight(I)Z
-
isAtOrAboveTopmostSection
protected boolean isAtOrAboveTopmostSection(long sectionPos)- Mappings:
Namespace Name Mixin selector official mLdaf;m(J)Zintermediary method_15568Lnet/minecraft/class_3569;method_15568(J)Znamed isAtOrAboveTopmostSectionLnet/minecraft/world/chunk/light/SkyLightStorage;isAtOrAboveTopmostSection(J)Z
-
isSectionEnabled
protected boolean isSectionEnabled(long sectionPos)- Mappings:
Namespace Name Mixin selector official nLdaf;n(J)Zintermediary method_15566Lnet/minecraft/class_3569;method_15566(J)Znamed isSectionEnabledLnet/minecraft/world/chunk/light/SkyLightStorage;isSectionEnabled(J)Z
-