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
- Mappings:
Namespace Name official demintermediary net/minecraft/class_3569named net/minecraft/world/chunk/light/SkyLightStorage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LongSetprivate LongSetprivate booleanprivate static Direction[]private LongSetprivate LongSetFields inherited from class net.minecraft.world.chunk.light.LightStorage
dirtySections, EMPTY, field_31710, field_31711, field_31712, hasLightUpdates, markedNotReadySections, markedReadySections, notifySections, queuedSections, readySections, storage, uncachedStorage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprotected ChunkNibbleArraycreateSection(long sectionPos)private voidenqueueAddSection(long sectionPos)private voidenqueueRemoveSection(long sectionPos)protected intgetLight(long blockPos)protected booleanprotected 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 nLdem;n:[Lgl;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 oLdem;o: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 pLdem;p: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 qLdem;q: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 rLdem;r: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 sLdem;s: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>Ldem;<init>(Lcmy;)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 dLdei;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 eLdem;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 kLdei;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 oLdem;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 pLdem;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 fLdem;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 lLdei;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 bLdei;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 aLdei;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 jLdei;j(J)Lcmq;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 aLdei;a(Ldeg;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 aLdem;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 mLdem;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 nLdem;n(J)Zintermediary method_15566Lnet/minecraft/class_3569;method_15566(J)Znamed isSectionEnabledLnet/minecraft/world/chunk/light/SkyLightStorage;isSectionEnabled(J)Z
-