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 dhf
intermediary net/minecraft/class_3552
named 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 inherited from class net.minecraft.world.chunk.light.ChunkLightProvider
chunkProvider, field_31708, lightStorage, reusableBlockPos, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLightSource
(BlockPos pos, int level) private int
getLightSourceLuminance
(long blockPos) protected int
getPropagatedLevel
(long sourceId, long targetId, int level) protected void
propagateLevel
(long id, int level, boolean decrease) protected int
recalculateLevel
(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, setSectionStatus
Methods inherited from class net.minecraft.world.chunk.light.LevelPropagator
applyPendingUpdates, getPendingUpdateCount, hasPendingUpdates, propagateLevel, removePendingUpdate, removePendingUpdateIf, updateLevel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.chunk.light.LightingView
setSectionStatus
-
Field Details
-
DIRECTIONS
- Mappings:
Namespace Name Mixin selector official f
Ldhf;f:[Lgm;
intermediary field_15778
Lnet/minecraft/class_3552;field_15778:[Lnet/minecraft/class_2350;
named DIRECTIONS
Lnet/minecraft/world/chunk/light/ChunkBlockLightProvider;DIRECTIONS:[Lnet/minecraft/util/math/Direction;
-
mutablePos
- Mappings:
Namespace Name Mixin selector official g
Ldhf;g:Lgh$a;
intermediary field_16511
Lnet/minecraft/class_3552;field_16511:Lnet/minecraft/class_2338$class_2339;
named mutablePos
Lnet/minecraft/world/chunk/light/ChunkBlockLightProvider;mutablePos:Lnet/minecraft/util/math/BlockPos$Mutable;
-
-
Constructor Details
-
ChunkBlockLightProvider
- Mappings:
Namespace Name Mixin selector official <init>
Ldhf;<init>(Lcqk;)V
intermediary <init>
Lnet/minecraft/class_3552;<init>(Lnet/minecraft/class_2823;)V
named <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 d
Ldhf;d(J)I
intermediary method_15474
Lnet/minecraft/class_3552;method_15474(J)I
named getLightSourceLuminance
Lnet/minecraft/world/chunk/light/ChunkBlockLightProvider;getLightSourceLuminance(J)I
-
getPropagatedLevel
protected int getPropagatedLevel(long sourceId, long targetId, int level) - Overrides:
getPropagatedLevel
in classChunkLightProvider<BlockLightStorage.Data,
BlockLightStorage> - Mappings:
Namespace Name Mixin selector official b
Ldhi;b(JJI)I
intermediary method_15488
Lnet/minecraft/class_3554;method_15488(JJI)I
named getPropagatedLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)I
-
propagateLevel
protected void propagateLevel(long id, int level, boolean decrease) - Specified by:
propagateLevel
in classLevelPropagator
- Mappings:
Namespace Name Mixin selector official a
Ldhi;a(JIZ)V
intermediary method_15487
Lnet/minecraft/class_3554;method_15487(JIZ)V
named propagateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JIZ)V
-
recalculateLevel
protected int recalculateLevel(long id, long excludedId, int maxLevel) - Overrides:
recalculateLevel
in classChunkLightProvider<BlockLightStorage.Data,
BlockLightStorage> - Mappings:
Namespace Name Mixin selector official a
Ldhi;a(JJI)I
intermediary method_15486
Lnet/minecraft/class_3554;method_15486(JJI)I
named recalculateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;recalculateLevel(JJI)I
-
addLightSource
- Specified by:
addLightSource
in interfaceLightingView
- Overrides:
addLightSource
in classChunkLightProvider<BlockLightStorage.Data,
BlockLightStorage> - Mappings:
Namespace Name Mixin selector official a
Ldhn;a(Lgh;I)V
intermediary method_15514
Lnet/minecraft/class_3565;method_15514(Lnet/minecraft/class_2338;I)V
named addLightSource
Lnet/minecraft/world/chunk/light/LightingView;addLightSource(Lnet/minecraft/util/math/BlockPos;I)V
-