Package net.minecraft.world.chunk.light
Class ChunkLightProvider<M extends ChunkToNibbleArrayMap<M>,S extends LightStorage<M>> 
java.lang.Object
net.minecraft.world.chunk.light.ChunkLightProvider<M,S> 
- All Implemented Interfaces:
- ChunkLightingView,- LightingView
- Direct Known Subclasses:
- ChunkBlockLightProvider,- ChunkSkyLightProvider
public abstract class ChunkLightProvider<M extends ChunkToNibbleArrayMap<M>,S extends LightStorage<M>> 
extends Object
implements ChunkLightingView
- Mappings:
- Namespace - Name - named - net/minecraft/world/chunk/light/ChunkLightProvider- intermediary - net/minecraft/class_3558- official - esr
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classMethods for manipulating a set of bitflags with yet unknown functionality.Nested classes/interfaces inherited from interface net.minecraft.world.chunk.light.ChunkLightingViewChunkLightingView.Empty
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final LongOpenHashSetprivate final long[]private final LightSourceView[]protected final ChunkProviderprotected static final Direction[]private static final intstatic final intprotected static final intprotected static final longprivate static final intprivate final LongArrayFIFOQueueprivate final LongArrayFIFOQueueprotected final S
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedChunkLightProvider(ChunkProvider chunkProvider, S lightStorage) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheckBlock(BlockPos pos) private voiddisplaySectionLevel(long sectionPos) intvoidenqueueSectionData(long sectionPos, @Nullable ChunkNibbleArray lightArray) protected @Nullable LightSourceViewgetChunk(int chunkX, int chunkZ) intgetLightLevel(BlockPos pos) protected intgetOpacity(BlockState state) static VoxelShapegetOpaqueShape(BlockState state, Direction direction) static intgetRealisticOpacity(BlockState state1, BlockState state2, Direction direction, int opacity2) protected BlockStategetStatus(long sectionPos) booleanprotected static booleanisTrivialForLighting(BlockState blockState) protected abstract voidmethod_51529(long blockPos) protected abstract voidmethod_51530(long blockPos, long long2) protected abstract voidmethod_51531(long blockPos, long long2, int lightLevel) protected voidmethod_51565(long blockPos, long flags) protected voidmethod_51566(long blockPos, long flags) private intprivate intstatic booleanneedsLightUpdate(BlockState oldState, BlockState newState) voidsetColumnEnabled(ChunkPos pos, boolean retainData) voidsetRetainColumn(ChunkPos pos, boolean retainData) voidsetSectionStatus(ChunkSectionPos pos, boolean notReady) protected booleanshapesCoverFullCube(BlockState source, BlockState target, Direction direction) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.chunk.light.LightingViewpropagateLight, setSectionStatus
- 
Field Details- 
field_44729public static final int field_44729- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_44729- Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44729:I- intermediary - field_44729- Lnet/minecraft/class_3558;field_44729:I- official - a- Lesr;a:I
 
- 
field_44730protected static final int field_44730- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_44730- Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44730:I- intermediary - field_44730- Lnet/minecraft/class_3558;field_44730:I- official - b- Lesr;b:I
 
- 
field_44731protected static final long field_44731- Mappings:
- Namespace - Name - Mixin selector - named - field_44731- Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44731:J- intermediary - field_44731- Lnet/minecraft/class_3558;field_44731:J- official - c- Lesr;c:J
 
- 
field_44732private static final int field_44732- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_44732- Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44732:I- intermediary - field_44732- Lnet/minecraft/class_3558;field_44732:I- official - g- Lesr;g:I
 
- 
DIRECTIONS- Mappings:
- Namespace - Name - Mixin selector - named - DIRECTIONS- Lnet/minecraft/world/chunk/light/ChunkLightProvider;DIRECTIONS:[Lnet/minecraft/util/math/Direction;- intermediary - field_16513- Lnet/minecraft/class_3558;field_16513:[Lnet/minecraft/class_2350;- official - d- Lesr;d:[Ljn;
 
- 
field_31709private static final int field_31709- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_31709- Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_31709:I- intermediary - field_31709- Lnet/minecraft/class_3558;field_31709:I- official - k- Lesr;k:I
 
- 
chunkProvider- Mappings:
- Namespace - Name - Mixin selector - named - chunkProvider- Lnet/minecraft/world/chunk/light/ChunkLightProvider;chunkProvider:Lnet/minecraft/world/chunk/ChunkProvider;- intermediary - field_15795- Lnet/minecraft/class_3558;field_15795:Lnet/minecraft/class_2823;- official - e- Lesr;e:Ldzg;
 
- 
lightStorage- Mappings:
- Namespace - Name - Mixin selector - named - lightStorage- Lnet/minecraft/world/chunk/light/ChunkLightProvider;lightStorage:Lnet/minecraft/world/chunk/light/LightStorage;- intermediary - field_15793- Lnet/minecraft/class_3558;field_15793:Lnet/minecraft/class_3560;- official - f- Lesr;f:Leso;
 
- 
blockPositionsToCheck- Mappings:
- Namespace - Name - Mixin selector - named - blockPositionsToCheck- Lnet/minecraft/world/chunk/light/ChunkLightProvider;blockPositionsToCheck:Lit/unimi/dsi/fastutil/longs/LongOpenHashSet;- intermediary - field_44733- Lnet/minecraft/class_3558;field_44733:Lit/unimi/dsi/fastutil/longs/LongOpenHashSet;- official - h- Lesr;h:Lit/unimi/dsi/fastutil/longs/LongOpenHashSet;
 
- 
field_44734- Mappings:
- Namespace - Name - Mixin selector - named - field_44734- Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44734:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;- intermediary - field_44734- Lnet/minecraft/class_3558;field_44734:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;- official - i- Lesr;i:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;
 
- 
field_44735- Mappings:
- Namespace - Name - Mixin selector - named - field_44735- Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44735:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;- intermediary - field_44735- Lnet/minecraft/class_3558;field_44735:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;- official - j- Lesr;j:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;
 
- 
cachedChunkPositionsprivate final long[] cachedChunkPositions- Mappings:
- Namespace - Name - Mixin selector - named - cachedChunkPositions- Lnet/minecraft/world/chunk/light/ChunkLightProvider;cachedChunkPositions:[J- intermediary - field_17397- Lnet/minecraft/class_3558;field_17397:[J- official - l- Lesr;l:[J
 
- 
cachedChunks- Mappings:
- Namespace - Name - Mixin selector - named - cachedChunks- Lnet/minecraft/world/chunk/light/ChunkLightProvider;cachedChunks:[Lnet/minecraft/world/chunk/light/LightSourceView;- intermediary - field_17398- Lnet/minecraft/class_3558;field_17398:[Lnet/minecraft/class_8527;- official - m- Lesr;m:[Ldzf;
 
 
- 
- 
Constructor Details- 
ChunkLightProvider- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/world/chunk/light/ChunkLightProvider;<init>(Lnet/minecraft/world/chunk/ChunkProvider;Lnet/minecraft/world/chunk/light/LightStorage;)V- intermediary - <init>- Lnet/minecraft/class_3558;<init>(Lnet/minecraft/class_2823;Lnet/minecraft/class_3560;)V- official - <init>- Lesr;<init>(Ldzg;Leso;)V
 
 
- 
- 
Method Details- 
needsLightUpdate- Mappings:
- Namespace - Name - Mixin selector - named - needsLightUpdate- Lnet/minecraft/world/chunk/light/ChunkLightProvider;needsLightUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Z- intermediary - method_51561- Lnet/minecraft/class_3558;method_51561(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Z- official - a- Lesr;a(Ldwy;Ldwy;)Z
 
- 
getRealisticOpacitypublic static int getRealisticOpacity(BlockState state1, BlockState state2, Direction direction, int opacity2) - Mappings:
- Namespace - Name - Mixin selector - named - getRealisticOpacity- Lnet/minecraft/world/chunk/light/ChunkLightProvider;getRealisticOpacity(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;I)I- intermediary - method_20049- Lnet/minecraft/class_3558;method_20049(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;I)I- official - a- Lesr;a(Ldwy;Ldwy;Ljn;I)I
 
- 
getOpaqueShape- Mappings:
- Namespace - Name - Mixin selector - named - getOpaqueShape- Lnet/minecraft/world/chunk/light/ChunkLightProvider;getOpaqueShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;- intermediary - method_51562- Lnet/minecraft/class_3558;method_51562(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;- official - a- Lesr;a(Ldwy;Ljn;)Lfbv;
 
- 
isTrivialForLighting- Mappings:
- Namespace - Name - Mixin selector - named - isTrivialForLighting- Lnet/minecraft/world/chunk/light/ChunkLightProvider;isTrivialForLighting(Lnet/minecraft/block/BlockState;)Z- intermediary - method_51563- Lnet/minecraft/class_3558;method_51563(Lnet/minecraft/class_2680;)Z- official - a- Lesr;a(Ldwy;)Z
 
- 
getStateForLighting- Mappings:
- Namespace - Name - Mixin selector - named - getStateForLighting- Lnet/minecraft/world/chunk/light/ChunkLightProvider;getStateForLighting(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;- intermediary - method_50018- Lnet/minecraft/class_3558;method_50018(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;- official - c- Lesr;c(Lji;)Ldwy;
 
- 
getOpacity- Mappings:
- Namespace - Name - Mixin selector - named - getOpacity- Lnet/minecraft/world/chunk/light/ChunkLightProvider;getOpacity(Lnet/minecraft/block/BlockState;)I- intermediary - method_50017- Lnet/minecraft/class_3558;method_50017(Lnet/minecraft/class_2680;)I- official - b- Lesr;b(Ldwy;)I
 
- 
shapesCoverFullCube- Mappings:
- Namespace - Name - Mixin selector - named - shapesCoverFullCube- Lnet/minecraft/world/chunk/light/ChunkLightProvider;shapesCoverFullCube(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z- intermediary - method_50016- Lnet/minecraft/class_3558;method_50016(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Z- official - a- Lesr;a(Ldwy;Ldwy;Ljn;)Z
 
- 
getChunk- Mappings:
- Namespace - Name - Mixin selector - named - getChunk- Lnet/minecraft/world/chunk/light/ChunkLightProvider;getChunk(II)Lnet/minecraft/world/chunk/light/LightSourceView;- intermediary - method_17529- Lnet/minecraft/class_3558;method_17529(II)Lnet/minecraft/class_8527;- official - a- Lesr;a(II)Ldzf;
 
- 
clearChunkCacheprivate void clearChunkCache()- Mappings:
- Namespace - Name - Mixin selector - named - clearChunkCache- Lnet/minecraft/world/chunk/light/ChunkLightProvider;clearChunkCache()V- intermediary - method_17530- Lnet/minecraft/class_3558;method_17530()V- official - c- Lesr;c()V
 
- 
checkBlock- Specified by:
- checkBlockin interface- LightingView
- Mappings:
- Namespace - Name - Mixin selector - named - checkBlock- Lnet/minecraft/world/chunk/light/LightingView;checkBlock(Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_15513- Lnet/minecraft/class_3565;method_15513(Lnet/minecraft/class_2338;)V- official - a- Less;a(Lji;)V
 
- 
enqueueSectionData- Mappings:
- Namespace - Name - Mixin selector - named - enqueueSectionData- Lnet/minecraft/world/chunk/light/ChunkLightProvider;enqueueSectionData(JLnet/minecraft/world/chunk/ChunkNibbleArray;)V- intermediary - method_15515- Lnet/minecraft/class_3558;method_15515(JLnet/minecraft/class_2804;)V- official - a- Lesr;a(JLdyy;)V
 
- 
setRetainColumn- Mappings:
- Namespace - Name - Mixin selector - named - setRetainColumn- Lnet/minecraft/world/chunk/light/ChunkLightProvider;setRetainColumn(Lnet/minecraft/util/math/ChunkPos;Z)V- intermediary - method_20599- Lnet/minecraft/class_3558;method_20599(Lnet/minecraft/class_1923;Z)V- official - b- Lesr;b(Ldfp;Z)V
 
- 
setSectionStatus- Specified by:
- setSectionStatusin interface- LightingView
- Mappings:
- Namespace - Name - Mixin selector - named - setSectionStatus- Lnet/minecraft/world/chunk/light/LightingView;setSectionStatus(Lnet/minecraft/util/math/ChunkSectionPos;Z)V- intermediary - method_15551- Lnet/minecraft/class_3565;method_15551(Lnet/minecraft/class_4076;Z)V- official - a- Less;a(Lkk;Z)V
 
- 
setColumnEnabled- Specified by:
- setColumnEnabledin interface- LightingView
- Mappings:
- Namespace - Name - Mixin selector - named - setColumnEnabled- Lnet/minecraft/world/chunk/light/LightingView;setColumnEnabled(Lnet/minecraft/util/math/ChunkPos;Z)V- intermediary - method_15512- Lnet/minecraft/class_3565;method_15512(Lnet/minecraft/class_1923;Z)V- official - a- Less;a(Ldfp;Z)V
 
- 
doLightUpdatespublic int doLightUpdates()- Specified by:
- doLightUpdatesin interface- LightingView
- Mappings:
- Namespace - Name - Mixin selector - named - doLightUpdates- Lnet/minecraft/world/chunk/light/LightingView;doLightUpdates()I- intermediary - method_15516- Lnet/minecraft/class_3565;method_15516()I- official - a- Less;a()I
 
- 
method_51567private int method_51567()- Mappings:
- Namespace - Name - Mixin selector - named - method_51567- Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51567()I- intermediary - method_51567- Lnet/minecraft/class_3558;method_51567()I- official - d- Lesr;d()I
 
- 
method_51570private int method_51570()- Mappings:
- Namespace - Name - Mixin selector - named - method_51570- Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51570()I- intermediary - method_51570- Lnet/minecraft/class_3558;method_51570()I- official - e- Lesr;e()I
 
- 
method_51565protected void method_51565(long blockPos, long flags) - Mappings:
- Namespace - Name - Mixin selector - named - method_51565- Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51565(JJ)V- intermediary - method_51565- Lnet/minecraft/class_3558;method_51565(JJ)V- official - b- Lesr;b(JJ)V
 
- 
method_51566protected void method_51566(long blockPos, long flags) - Mappings:
- Namespace - Name - Mixin selector - named - method_51566- Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51566(JJ)V- intermediary - method_51566- Lnet/minecraft/class_3558;method_51566(JJ)V- official - c- Lesr;c(JJ)V
 
- 
hasUpdatespublic boolean hasUpdates()- Specified by:
- hasUpdatesin interface- LightingView
- Mappings:
- Namespace - Name - Mixin selector - named - hasUpdates- Lnet/minecraft/world/chunk/light/LightingView;hasUpdates()Z- intermediary - method_15518- Lnet/minecraft/class_3565;method_15518()Z- official - N_- Less;N_()Z
 
- 
getLightSection- Specified by:
- getLightSectionin interface- ChunkLightingView
- Mappings:
- Namespace - Name - Mixin selector - named - getLightSection- Lnet/minecraft/world/chunk/light/ChunkLightingView;getLightSection(Lnet/minecraft/util/math/ChunkSectionPos;)Lnet/minecraft/world/chunk/ChunkNibbleArray;- intermediary - method_15544- Lnet/minecraft/class_3562;method_15544(Lnet/minecraft/class_4076;)Lnet/minecraft/class_2804;- official - a- Lesn;a(Lkk;)Ldyy;
 
- 
getLightLevel- Specified by:
- getLightLevelin interface- ChunkLightingView
- Mappings:
- Namespace - Name - Mixin selector - named - getLightLevel- Lnet/minecraft/world/chunk/light/ChunkLightingView;getLightLevel(Lnet/minecraft/util/math/BlockPos;)I- intermediary - method_15543- Lnet/minecraft/class_3562;method_15543(Lnet/minecraft/class_2338;)I- official - b- Lesn;b(Lji;)I
 
- 
displaySectionLevel- Mappings:
- Namespace - Name - Mixin selector - named - displaySectionLevel- Lnet/minecraft/world/chunk/light/ChunkLightProvider;displaySectionLevel(J)Ljava/lang/String;- intermediary - method_22875- Lnet/minecraft/class_3558;method_22875(J)Ljava/lang/String;- official - b- Lesr;b(J)Ljava/lang/String;
 
- 
getStatus- Mappings:
- Namespace - Name - Mixin selector - named - getStatus- Lnet/minecraft/world/chunk/light/ChunkLightProvider;getStatus(J)Lnet/minecraft/world/chunk/light/LightStorage$Status;- intermediary - method_51568- Lnet/minecraft/class_3558;method_51568(J)Lnet/minecraft/class_3560$class_8530;- official - c- Lesr;c(J)Leso$b;
 
- 
method_51529protected abstract void method_51529(long blockPos) - Mappings:
- Namespace - Name - Mixin selector - named - method_51529- Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51529(J)V- intermediary - method_51529- Lnet/minecraft/class_3558;method_51529(J)V- official - a- Lesr;a(J)V
 
- 
method_51531protected abstract void method_51531(long blockPos, long long2, int lightLevel) - Mappings:
- Namespace - Name - Mixin selector - named - method_51531- Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51531(JJI)V- intermediary - method_51531- Lnet/minecraft/class_3558;method_51531(JJI)V- official - a- Lesr;a(JJI)V
 
- 
method_51530protected abstract void method_51530(long blockPos, long long2) - Mappings:
- Namespace - Name - Mixin selector - named - method_51530- Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51530(JJ)V- intermediary - method_51530- Lnet/minecraft/class_3558;method_51530(JJ)V- official - a- Lesr;a(JJ)V
 
 
-