Package net.minecraft.world.chunk.light
Class ChunkBlockLightProvider
java.lang.Object
net.minecraft.world.chunk.light.LevelPropagator
net.minecraft.world.chunk.light.ChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>
net.minecraft.world.chunk.light.ChunkBlockLightProvider
- All Implemented Interfaces:
ChunkLightingView,LightingView
public final class ChunkBlockLightProvider extends ChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>
- Mappings:
Namespace Name official czuintermediary net/minecraft/class_3552named net/minecraft/world/chunk/light/ChunkBlockLightProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.chunk.light.ChunkLightingView
ChunkLightingView.Empty -
Field Summary
Fields Modifier and Type Field Description private static Direction[]DIRECTIONSprivate BlockPos.MutablemutablePosFields inherited from class net.minecraft.world.chunk.light.ChunkLightProvider
chunkProvider, lightStorage, reusableBlockPos, type -
Constructor Summary
Constructors Constructor Description ChunkBlockLightProvider(ChunkProvider chunkProvider) -
Method Summary
Modifier and Type Method Description voidaddLightSource(BlockPos pos, int level)private intgetLightSourceLuminance(long blockPos)protected intgetPropagatedLevel(long sourceId, long targetId, int level)protected voidpropagateLevel(long id, int level, boolean decrease)protected intrecalculateLevel(long id, long excludedId, int maxLevel)Methods inherited from class net.minecraft.world.chunk.light.ChunkLightProvider
checkBlock, displaySectionLevel, doLightUpdates, enqueueSectionData, getCurrentLevelFromSection, getLevel, getLightLevel, getLightSection, getOpaqueShape, getRealisticOpacity, getStateForLighting, hasUpdates, isMarker, resetLevel, setColumnEnabled, setLevel, setRetainColumn, setSectionStatusMethods inherited from class net.minecraft.world.chunk.light.LevelPropagator
applyPendingUpdates, getPendingUpdateCount, hasPendingUpdates, 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 eLczu;e:[Lgc;intermediary field_15778Lnet/minecraft/class_3552;field_15778:[Lnet/minecraft/class_2350;named DIRECTIONSLnet/minecraft/world/chunk/light/ChunkBlockLightProvider;DIRECTIONS:[Lnet/minecraft/util/math/Direction;
-
mutablePos
- Mappings:
Namespace Name Mixin selector official fLczu;f:Lfx$a;intermediary field_16511Lnet/minecraft/class_3552;field_16511:Lnet/minecraft/class_2338$class_2339;named mutablePosLnet/minecraft/world/chunk/light/ChunkBlockLightProvider;mutablePos:Lnet/minecraft/util/math/BlockPos$Mutable;
-
-
Constructor Details
-
ChunkBlockLightProvider
- Mappings:
Namespace Name Mixin selector official <init>Lczu;<init>(Lcjy;)Vintermediary <init>Lnet/minecraft/class_3552;<init>(Lnet/minecraft/class_2823;)Vnamed <init>Lnet/minecraft/world/chunk/light/ChunkBlockLightProvider;<init>(Lnet/minecraft/world/chunk/ChunkProvider;)V
-
-
Method Details
-
getLightSourceLuminance
private int getLightSourceLuminance(long blockPos)- Mappings:
Namespace Name Mixin selector official dLczu;d(J)Iintermediary method_15474Lnet/minecraft/class_3552;method_15474(J)Inamed getLightSourceLuminanceLnet/minecraft/world/chunk/light/ChunkBlockLightProvider;getLightSourceLuminance(J)I
-
getPropagatedLevel
protected int getPropagatedLevel(long sourceId, long targetId, int level)- Overrides:
getPropagatedLevelin classChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>- Mappings:
Namespace Name Mixin selector official bLczx;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 aLczx;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<BlockLightStorage.Data,BlockLightStorage>- Mappings:
Namespace Name Mixin selector official aLczx;a(JJI)Iintermediary method_15486Lnet/minecraft/class_3554;method_15486(JJI)Inamed recalculateLevelLnet/minecraft/world/chunk/light/LevelPropagator;recalculateLevel(JJI)I
-
addLightSource
- Overrides:
addLightSourcein classChunkLightProvider<BlockLightStorage.Data,BlockLightStorage>- Mappings:
Namespace Name Mixin selector official aLczz;a(Lfx;I)Vintermediary method_15514Lnet/minecraft/class_3558;method_15514(Lnet/minecraft/class_2338;I)Vnamed addLightSourceLnet/minecraft/world/chunk/light/ChunkLightProvider;addLightSource(Lnet/minecraft/util/math/BlockPos;I)V
-