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 douintermediary net/minecraft/class_3569named net/minecraft/world/chunk/light/SkyLightStorage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LongSetprivate final LongSetprivate booleanprivate static final Direction[]private final LongSetprivate final 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 voidprivate static ChunkNibbleArraycopy(ChunkNibbleArray source) protected ChunkNibbleArraycreateSection(long sectionPos) private voidenqueueAddSection(long sectionPos) private voidenqueueRemoveSection(long sectionPos) protected intgetLight(long blockPos) protected intgetLight(long blockPos, boolean cached) protected booleanprotected booleanisAboveMinHeight(int sectionY) protected booleanisAtOrAboveTopmostSection(long sectionPos) protected booleanisSectionEnabled(long sectionPos) 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 nLdou;n:[Lgy;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 oLdou;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 pLdou;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 qLdou;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 rLdou;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 sLdou;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>Ldou;<init>(Lcxa;)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 dLdoq;d(J)Iintermediary method_15538Lnet/minecraft/class_3560;method_15538(J)Inamed getLightLnet/minecraft/world/chunk/light/LightStorage;getLight(J)I
-
getLight
protected int getLight(long blockPos, boolean cached) - Mappings:
Namespace Name Mixin selector official eLdou;e(JZ)Iintermediary method_31931Lnet/minecraft/class_3569;method_31931(JZ)Inamed getLightLnet/minecraft/world/chunk/light/SkyLightStorage;getLight(JZ)I
-
onLoadSection
protected void onLoadSection(long sectionPos) - Overrides:
onLoadSectionin classLightStorage<SkyLightStorage.Data>- Mappings:
Namespace Name Mixin selector official kLdoq;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 oLdou;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 pLdou;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 fLdou;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 lLdoq;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 bLdoq;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 aLdoq;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 jLdoq;j(J)Lcwt;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;
-
copy
- Mappings:
Namespace Name Mixin selector official aLdou;a(Lcwt;)Lcwt;intermediary method_37460Lnet/minecraft/class_3569;method_37460(Lnet/minecraft/class_2804;)Lnet/minecraft/class_2804;named copyLnet/minecraft/world/chunk/light/SkyLightStorage;copy(Lnet/minecraft/world/chunk/ChunkNibbleArray;)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 aLdoq;a(Ldoo;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 aLdou;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 mLdou;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 nLdou;n(J)Zintermediary method_15566Lnet/minecraft/class_3569;method_15566(J)Znamed isSectionEnabledLnet/minecraft/world/chunk/light/SkyLightStorage;isSectionEnabled(J)Z
-