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/ChunkLightProviderintermediary net/minecraft/class_3558official fks
-
Nested Class Summary
Nested 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.ChunkLightingView
ChunkLightingView.Empty -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.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 it.unimi.dsi.fastutil.longs.LongArrayFIFOQueueprivate final it.unimi.dsi.fastutil.longs.LongArrayFIFOQueueprotected final S -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChunkLightProvider(ChunkProvider chunkProvider, S lightStorage) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckBlock(BlockPos pos) protected abstract voidcheckForLightUpdate(long blockPos) private voiddisplaySectionLevel(long sectionPos) intvoidenqueueSectionData(long sectionPos, @Nullable ChunkNibbleArray lightArray) protected @Nullable LightSourceViewgetChunk(int chunkX, int chunkZ) intgetLightLevel(BlockPos pos) @Nullable ChunkNibbleArrayprotected 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) private intprivate intstatic booleanneedsLightUpdate(BlockState oldState, BlockState newState) protected abstract voidpropagateLightDecrease(long blockPos, long packed) protected abstract voidpropagateLightIncrease(long blockPos, long packed, int lightLevel) protected voidqueueLightDecrease(long blockPos, long flags) protected voidqueueLightIncrease(long blockPos, long flags) 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.chunk.light.LightingView
propagateLight, setSectionStatus
-
Field Details
-
field_44729
public static final int field_44729- See Also:
- Mappings:
Namespace Name Mixin selector named field_44729Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44729:Iintermediary field_44729Lnet/minecraft/class_3558;field_44729:Iofficial aLfks;a:I
-
field_44730
protected static final int field_44730- See Also:
- Mappings:
Namespace Name Mixin selector named field_44730Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44730:Iintermediary field_44730Lnet/minecraft/class_3558;field_44730:Iofficial bLfks;b:I
-
field_44731
protected static final long field_44731- Mappings:
Namespace Name Mixin selector named field_44731Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44731:Jintermediary field_44731Lnet/minecraft/class_3558;field_44731:Jofficial cLfks;c:J
-
field_44732
private static final int field_44732- See Also:
- Mappings:
Namespace Name Mixin selector named field_44732Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44732:Iintermediary field_44732Lnet/minecraft/class_3558;field_44732:Iofficial gLfks;g:I
-
DIRECTIONS
- Mappings:
Namespace Name Mixin selector named DIRECTIONSLnet/minecraft/world/chunk/light/ChunkLightProvider;DIRECTIONS:[Lnet/minecraft/util/math/Direction;intermediary field_16513Lnet/minecraft/class_3558;field_16513:[Lnet/minecraft/class_2350;official dLfks;d:[Liz;
-
field_31709
private static final int field_31709- See Also:
- Mappings:
Namespace Name Mixin selector named field_31709Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_31709:Iintermediary field_31709Lnet/minecraft/class_3558;field_31709:Iofficial kLfks;k:I
-
chunkProvider
- Mappings:
Namespace Name Mixin selector named chunkProviderLnet/minecraft/world/chunk/light/ChunkLightProvider;chunkProvider:Lnet/minecraft/world/chunk/ChunkProvider;intermediary field_15795Lnet/minecraft/class_3558;field_15795:Lnet/minecraft/class_2823;official eLfks;e:Leqt;
-
lightStorage
- Mappings:
Namespace Name Mixin selector named lightStorageLnet/minecraft/world/chunk/light/ChunkLightProvider;lightStorage:Lnet/minecraft/world/chunk/light/LightStorage;intermediary field_15793Lnet/minecraft/class_3558;field_15793:Lnet/minecraft/class_3560;official fLfks;f:Lfkp;
-
blockPositionsToCheck
private final it.unimi.dsi.fastutil.longs.LongOpenHashSet blockPositionsToCheck- Mappings:
Namespace Name Mixin selector named blockPositionsToCheckLnet/minecraft/world/chunk/light/ChunkLightProvider;blockPositionsToCheck:Lit/unimi/dsi/fastutil/longs/LongOpenHashSet;intermediary field_44733Lnet/minecraft/class_3558;field_44733:Lit/unimi/dsi/fastutil/longs/LongOpenHashSet;official hLfks;h:Lit/unimi/dsi/fastutil/longs/LongOpenHashSet;
-
field_44734
private final it.unimi.dsi.fastutil.longs.LongArrayFIFOQueue field_44734- Mappings:
Namespace Name Mixin selector named field_44734Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44734:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;intermediary field_44734Lnet/minecraft/class_3558;field_44734:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;official iLfks;i:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;
-
field_44735
private final it.unimi.dsi.fastutil.longs.LongArrayFIFOQueue field_44735- Mappings:
Namespace Name Mixin selector named field_44735Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44735:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;intermediary field_44735Lnet/minecraft/class_3558;field_44735:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;official jLfks;j:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;
-
cachedChunkPositions
private final long[] cachedChunkPositions- Mappings:
Namespace Name Mixin selector named cachedChunkPositionsLnet/minecraft/world/chunk/light/ChunkLightProvider;cachedChunkPositions:[Jintermediary field_17397Lnet/minecraft/class_3558;field_17397:[Jofficial lLfks;l:[J
-
cachedChunks
- Mappings:
Namespace Name Mixin selector named cachedChunksLnet/minecraft/world/chunk/light/ChunkLightProvider;cachedChunks:[Lnet/minecraft/world/chunk/light/LightSourceView;intermediary field_17398Lnet/minecraft/class_3558;field_17398:[Lnet/minecraft/class_8527;official mLfks;m:[Leqs;
-
-
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;)Vintermediary <init>Lnet/minecraft/class_3558;<init>(Lnet/minecraft/class_2823;Lnet/minecraft/class_3560;)Vofficial <init>Lfks;<init>(Leqt;Lfkp;)V
-
-
Method Details
-
needsLightUpdate
- Mappings:
Namespace Name Mixin selector named needsLightUpdateLnet/minecraft/world/chunk/light/ChunkLightProvider;needsLightUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Zintermediary method_51561Lnet/minecraft/class_3558;method_51561(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Zofficial aLfks;a(Leoh;Leoh;)Z
-
getRealisticOpacity
public static int getRealisticOpacity(BlockState state1, BlockState state2, Direction direction, int opacity2) - Mappings:
Namespace Name Mixin selector named getRealisticOpacityLnet/minecraft/world/chunk/light/ChunkLightProvider;getRealisticOpacity(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;I)Iintermediary method_20049Lnet/minecraft/class_3558;method_20049(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;I)Iofficial aLfks;a(Leoh;Leoh;Liz;I)I
-
getOpaqueShape
- Mappings:
Namespace Name Mixin selector named getOpaqueShapeLnet/minecraft/world/chunk/light/ChunkLightProvider;getOpaqueShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_51562Lnet/minecraft/class_3558;method_51562(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;official aLfks;a(Leoh;Liz;)Lfug;
-
isTrivialForLighting
- Mappings:
Namespace Name Mixin selector named isTrivialForLightingLnet/minecraft/world/chunk/light/ChunkLightProvider;isTrivialForLighting(Lnet/minecraft/block/BlockState;)Zintermediary method_51563Lnet/minecraft/class_3558;method_51563(Lnet/minecraft/class_2680;)Zofficial aLfks;a(Leoh;)Z
-
getStateForLighting
- Mappings:
Namespace Name Mixin selector named getStateForLightingLnet/minecraft/world/chunk/light/ChunkLightProvider;getStateForLighting(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;intermediary method_50018Lnet/minecraft/class_3558;method_50018(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;official cLfks;c(Lis;)Leoh;
-
getOpacity
- Mappings:
Namespace Name Mixin selector named getOpacityLnet/minecraft/world/chunk/light/ChunkLightProvider;getOpacity(Lnet/minecraft/block/BlockState;)Iintermediary method_50017Lnet/minecraft/class_3558;method_50017(Lnet/minecraft/class_2680;)Iofficial bLfks;b(Leoh;)I
-
shapesCoverFullCube
- Mappings:
Namespace Name Mixin selector named shapesCoverFullCubeLnet/minecraft/world/chunk/light/ChunkLightProvider;shapesCoverFullCube(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Zintermediary method_50016Lnet/minecraft/class_3558;method_50016(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Zofficial aLfks;a(Leoh;Leoh;Liz;)Z
-
getChunk
- Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/chunk/light/ChunkLightProvider;getChunk(II)Lnet/minecraft/world/chunk/light/LightSourceView;intermediary method_17529Lnet/minecraft/class_3558;method_17529(II)Lnet/minecraft/class_8527;official aLfks;a(II)Leqs;
-
clearChunkCache
private void clearChunkCache()- Mappings:
Namespace Name Mixin selector named clearChunkCacheLnet/minecraft/world/chunk/light/ChunkLightProvider;clearChunkCache()Vintermediary method_17530Lnet/minecraft/class_3558;method_17530()Vofficial cLfks;c()V
-
checkBlock
- Specified by:
checkBlockin interfaceLightingView- Mappings:
Namespace Name Mixin selector named checkBlockLnet/minecraft/world/chunk/light/LightingView;checkBlock(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_15513Lnet/minecraft/class_3565;method_15513(Lnet/minecraft/class_2338;)Vofficial aLfkt;a(Lis;)V
-
enqueueSectionData
- Mappings:
Namespace Name Mixin selector named enqueueSectionDataLnet/minecraft/world/chunk/light/ChunkLightProvider;enqueueSectionData(JLnet/minecraft/world/chunk/ChunkNibbleArray;)Vintermediary method_15515Lnet/minecraft/class_3558;method_15515(JLnet/minecraft/class_2804;)Vofficial aLfks;a(JLeql;)V
-
setRetainColumn
- Mappings:
Namespace Name Mixin selector named setRetainColumnLnet/minecraft/world/chunk/light/ChunkLightProvider;setRetainColumn(Lnet/minecraft/util/math/ChunkPos;Z)Vintermediary method_20599Lnet/minecraft/class_3558;method_20599(Lnet/minecraft/class_1923;Z)Vofficial bLfks;b(Ldvu;Z)V
-
setSectionStatus
- Specified by:
setSectionStatusin interfaceLightingView- Mappings:
Namespace Name Mixin selector named setSectionStatusLnet/minecraft/world/chunk/light/LightingView;setSectionStatus(Lnet/minecraft/util/math/ChunkSectionPos;Z)Vintermediary method_15551Lnet/minecraft/class_3565;method_15551(Lnet/minecraft/class_4076;Z)Vofficial aLfkt;a(Ljw;Z)V
-
setColumnEnabled
- Specified by:
setColumnEnabledin interfaceLightingView- Mappings:
Namespace Name Mixin selector named setColumnEnabledLnet/minecraft/world/chunk/light/LightingView;setColumnEnabled(Lnet/minecraft/util/math/ChunkPos;Z)Vintermediary method_15512Lnet/minecraft/class_3565;method_15512(Lnet/minecraft/class_1923;Z)Vofficial aLfkt;a(Ldvu;Z)V
-
doLightUpdates
public int doLightUpdates()- Specified by:
doLightUpdatesin interfaceLightingView- Mappings:
Namespace Name Mixin selector named doLightUpdatesLnet/minecraft/world/chunk/light/LightingView;doLightUpdates()Iintermediary method_15516Lnet/minecraft/class_3565;method_15516()Iofficial aLfkt;a()I
-
method_51567
private int method_51567()- Mappings:
Namespace Name Mixin selector named method_51567Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51567()Iintermediary method_51567Lnet/minecraft/class_3558;method_51567()Iofficial dLfks;d()I
-
method_51570
private int method_51570()- Mappings:
Namespace Name Mixin selector named method_51570Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51570()Iintermediary method_51570Lnet/minecraft/class_3558;method_51570()Iofficial eLfks;e()I
-
queueLightDecrease
protected void queueLightDecrease(long blockPos, long flags) - Mappings:
Namespace Name Mixin selector named queueLightDecreaseLnet/minecraft/world/chunk/light/ChunkLightProvider;queueLightDecrease(JJ)Vintermediary method_51565Lnet/minecraft/class_3558;method_51565(JJ)Vofficial bLfks;b(JJ)V
-
queueLightIncrease
protected void queueLightIncrease(long blockPos, long flags) - Mappings:
Namespace Name Mixin selector named queueLightIncreaseLnet/minecraft/world/chunk/light/ChunkLightProvider;queueLightIncrease(JJ)Vintermediary method_51566Lnet/minecraft/class_3558;method_51566(JJ)Vofficial cLfks;c(JJ)V
-
hasUpdates
public boolean hasUpdates()- Specified by:
hasUpdatesin interfaceLightingView- Mappings:
Namespace Name Mixin selector named hasUpdatesLnet/minecraft/world/chunk/light/LightingView;hasUpdates()Zintermediary method_15518Lnet/minecraft/class_3565;method_15518()Zofficial M_Lfkt;M_()Z
-
getLightSection
- Specified by:
getLightSectionin interfaceChunkLightingView- Mappings:
Namespace Name Mixin selector named getLightSectionLnet/minecraft/world/chunk/light/ChunkLightingView;getLightSection(Lnet/minecraft/util/math/ChunkSectionPos;)Lnet/minecraft/world/chunk/ChunkNibbleArray;intermediary method_15544Lnet/minecraft/class_3562;method_15544(Lnet/minecraft/class_4076;)Lnet/minecraft/class_2804;official aLfko;a(Ljw;)Leql;
-
getLightLevel
- Specified by:
getLightLevelin interfaceChunkLightingView- Mappings:
Namespace Name Mixin selector named getLightLevelLnet/minecraft/world/chunk/light/ChunkLightingView;getLightLevel(Lnet/minecraft/util/math/BlockPos;)Iintermediary method_15543Lnet/minecraft/class_3562;method_15543(Lnet/minecraft/class_2338;)Iofficial bLfko;b(Lis;)I
-
displaySectionLevel
- Mappings:
Namespace Name Mixin selector named displaySectionLevelLnet/minecraft/world/chunk/light/ChunkLightProvider;displaySectionLevel(J)Ljava/lang/String;intermediary method_22875Lnet/minecraft/class_3558;method_22875(J)Ljava/lang/String;official bLfks;b(J)Ljava/lang/String;
-
getStatus
- Mappings:
Namespace Name Mixin selector named getStatusLnet/minecraft/world/chunk/light/ChunkLightProvider;getStatus(J)Lnet/minecraft/world/chunk/light/LightStorage$Status;intermediary method_51568Lnet/minecraft/class_3558;method_51568(J)Lnet/minecraft/class_3560$class_8530;official cLfks;c(J)Lfkp$b;
-
checkForLightUpdate
protected abstract void checkForLightUpdate(long blockPos) - Mappings:
Namespace Name Mixin selector named checkForLightUpdateLnet/minecraft/world/chunk/light/ChunkLightProvider;checkForLightUpdate(J)Vintermediary method_51529Lnet/minecraft/class_3558;method_51529(J)Vofficial aLfks;a(J)V
-
propagateLightIncrease
protected abstract void propagateLightIncrease(long blockPos, long packed, int lightLevel) - Mappings:
Namespace Name Mixin selector named propagateLightIncreaseLnet/minecraft/world/chunk/light/ChunkLightProvider;propagateLightIncrease(JJI)Vintermediary method_51531Lnet/minecraft/class_3558;method_51531(JJI)Vofficial aLfks;a(JJI)V
-
propagateLightDecrease
protected abstract void propagateLightDecrease(long blockPos, long packed) - Mappings:
Namespace Name Mixin selector named propagateLightDecreaseLnet/minecraft/world/chunk/light/ChunkLightProvider;propagateLightDecrease(JJ)Vintermediary method_51530Lnet/minecraft/class_3558;method_51530(JJ)Vofficial aLfks;a(JJ)V
-