Package net.minecraft.world.chunk.light
Class ChunkSkyLightProvider
java.lang.Object
net.minecraft.world.chunk.light.LevelPropagator
net.minecraft.world.chunk.light.ChunkLightProvider<SkyLightStorage.Data,SkyLightStorage>
net.minecraft.world.chunk.light.ChunkSkyLightProvider
- All Implemented Interfaces:
ChunkLightingView,LightingView
- Mappings:
Namespace Name official dwlintermediary net/minecraft/class_3572named net/minecraft/world/chunk/light/ChunkSkyLightProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.chunk.light.ChunkLightingView
ChunkLightingView.Empty -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Direction[]private static final Direction[]Fields inherited from class net.minecraft.world.chunk.light.ChunkLightProvider
chunkProvider, lightStorage, reusableBlockPosFields inherited from class net.minecraft.world.chunk.light.LevelPropagator
field_43397, levelCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionChunkSkyLightProvider(ChunkProvider chunkProvider) protectedChunkSkyLightProvider(ChunkProvider chunkProvider, SkyLightStorage skyLightStorage) -
Method Summary
Modifier and TypeMethodDescriptiondisplaySectionLevel(long sectionPos) protected intgetPropagatedLevel(long sourceId, long targetId, int level) protected voidpropagateLevel(long id, int level, boolean decrease) protected intrecalculateLevel(long id, long excludedId, int maxLevel) protected voidresetLevel(long id) Methods inherited from class net.minecraft.world.chunk.light.ChunkLightProvider
addLightSource, checkBlock, doLightUpdates, enqueueSectionData, getCurrentLevelFromSection, getDirection, getLevel, getLightLevel, getLightSection, getOpacity, getRealisticOpacity, getStateForLighting, hasUpdates, method_51414, setColumnEnabled, setLevel, setRetainColumn, setSectionStatus, shapesCoverFullCubeMethods inherited from class net.minecraft.world.chunk.light.LevelPropagator
applyPendingUpdates, getPendingUpdateCount, hasPendingUpdates, isMarker, propagateLevel, removePendingUpdate, removePendingUpdateIf, updateLevelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.chunk.light.LightingView
setSectionStatus
-
Field Details
-
DIRECTIONS
- Mappings:
Namespace Name Mixin selector official dLdwl;d:[Lha;intermediary field_15826Lnet/minecraft/class_3572;field_15826:[Lnet/minecraft/class_2350;named DIRECTIONSLnet/minecraft/world/chunk/light/ChunkSkyLightProvider;DIRECTIONS:[Lnet/minecraft/util/math/Direction;
-
HORIZONTAL_DIRECTIONS
- Mappings:
Namespace Name Mixin selector official gLdwl;g:[Lha;intermediary field_15825Lnet/minecraft/class_3572;field_15825:[Lnet/minecraft/class_2350;named HORIZONTAL_DIRECTIONSLnet/minecraft/world/chunk/light/ChunkSkyLightProvider;HORIZONTAL_DIRECTIONS:[Lnet/minecraft/util/math/Direction;
-
-
Constructor Details
-
ChunkSkyLightProvider
- Mappings:
Namespace Name Mixin selector official <init>Ldwl;<init>(Ldea;)Vintermediary <init>Lnet/minecraft/class_3572;<init>(Lnet/minecraft/class_2823;)Vnamed <init>Lnet/minecraft/world/chunk/light/ChunkSkyLightProvider;<init>(Lnet/minecraft/world/chunk/ChunkProvider;)V
-
ChunkSkyLightProvider
@VisibleForTesting protected ChunkSkyLightProvider(ChunkProvider chunkProvider, SkyLightStorage skyLightStorage)
-
-
Method Details
-
getPropagatedLevel
protected int getPropagatedLevel(long sourceId, long targetId, int level) - Overrides:
getPropagatedLevelin classChunkLightProvider<SkyLightStorage.Data,SkyLightStorage> - Mappings:
Namespace Name Mixin selector official bLdwe;b(JJI)Iintermediary method_15488Lnet/minecraft/class_3554;method_15488(JJI)Inamed getPropagatedLevelLnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)I
-
propagateLevel
protected void propagateLevel(long id, int level, boolean decrease) - Specified by:
propagateLevelin classLevelPropagator- Mappings:
Namespace Name Mixin selector official aLdwe;a(JIZ)Vintermediary method_15487Lnet/minecraft/class_3554;method_15487(JIZ)Vnamed propagateLevelLnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JIZ)V
-
recalculateLevel
protected int recalculateLevel(long id, long excludedId, int maxLevel) - Overrides:
recalculateLevelin classChunkLightProvider<SkyLightStorage.Data,SkyLightStorage> - Mappings:
Namespace Name Mixin selector official aLdwe;a(JJI)Iintermediary method_15486Lnet/minecraft/class_3554;method_15486(JJI)Inamed recalculateLevelLnet/minecraft/world/chunk/light/LevelPropagator;recalculateLevel(JJI)I
-
resetLevel
protected void resetLevel(long id) - Overrides:
resetLevelin classChunkLightProvider<SkyLightStorage.Data,SkyLightStorage> - Mappings:
Namespace Name Mixin selector official fLdwe;f(J)Vintermediary method_15491Lnet/minecraft/class_3554;method_15491(J)Vnamed resetLevelLnet/minecraft/world/chunk/light/LevelPropagator;resetLevel(J)V
-
displaySectionLevel
- Overrides:
displaySectionLevelin classChunkLightProvider<SkyLightStorage.Data,SkyLightStorage> - Mappings:
Namespace Name Mixin selector official bLdwf;b(J)Ljava/lang/String;intermediary method_22875Lnet/minecraft/class_3558;method_22875(J)Ljava/lang/String;named displaySectionLevelLnet/minecraft/world/chunk/light/ChunkLightProvider;displaySectionLevel(J)Ljava/lang/String;
-