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 official dwnintermediary net/minecraft/class_3558named net/minecraft/world/chunk/light/ChunkLightProvider
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.world.chunk.light.ChunkLightingView
ChunkLightingView.Empty -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long[]private final class_8527[]protected final ChunkProviderprotected static final Direction[]private static final intstatic final intprotected static final intprotected static final longprivate static final intprivate final LongSetprivate final LongArrayFIFOQueueprivate final LongArrayFIFOQueueprotected final Sprivate final BlockPos.Mutable -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChunkLightProvider(ChunkProvider chunkProvider, S lightStorage) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckBlock(BlockPos pos) private voiddisplaySectionLevel(long sectionPos) intvoidenqueueSectionData(long sectionPos, @Nullable ChunkNibbleArray lightArray) protected @Nullable class_8527getChunk(int chunkX, int chunkZ) intgetLightLevel(BlockPos pos) protected intgetOpacity(BlockState state, BlockPos pos) protected VoxelShapegetOpaqueShape(BlockState blockState, long pos, Direction direction) static intgetRealisticOpacity(BlockView world, BlockState state1, BlockPos pos1, BlockState state2, BlockPos pos2, Direction direction, int opacity2) protected BlockStatebooleanprotected abstract voidmethod_51529(long long2) protected abstract voidmethod_51530(long long2, long long3) protected abstract voidmethod_51531(long long2, long long3, int int2) static booleanmethod_51561(BlockView blockView, BlockPos blockPos, BlockState blockState, BlockState blockState2) static VoxelShapemethod_51562(BlockView blockView, BlockPos blockPos, BlockState blockState, Direction direction) protected static booleanmethod_51563(BlockState blockState) protected voidmethod_51564(long long2) protected voidmethod_51565(long long2, long long3) protected voidmethod_51566(long long2, long long3) private intmethod_51568(long long2) private intvoidsetColumnEnabled(ChunkPos pos, boolean retainData) voidsetRetainColumn(ChunkPos chunkPos, boolean retainData) voidsetSectionStatus(ChunkSectionPos pos, boolean notReady) protected booleanshapesCoverFullCube(long sourceId, BlockState sourceState, long targetId, BlockState targetState, 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
method_51471, setSectionStatus
-
Field Details
-
field_44729
public static final int field_44729- See Also:
- Mappings:
Namespace Name Mixin selector official aLdwn;a:Iintermediary field_44729Lnet/minecraft/class_3558;field_44729:Inamed field_44729Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44729:I
-
field_44730
protected static final int field_44730- See Also:
- Mappings:
Namespace Name Mixin selector official bLdwn;b:Iintermediary field_44730Lnet/minecraft/class_3558;field_44730:Inamed field_44730Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44730:I
-
field_44731
protected static final long field_44731- Mappings:
Namespace Name Mixin selector official cLdwn;c:Jintermediary field_44731Lnet/minecraft/class_3558;field_44731:Jnamed field_44731Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44731:J
-
field_44732
private static final int field_44732- See Also:
- Mappings:
Namespace Name Mixin selector official gLdwn;g:Iintermediary field_44732Lnet/minecraft/class_3558;field_44732:Inamed field_44732Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44732:I
-
DIRECTIONS
- Mappings:
Namespace Name Mixin selector official dLdwn;d:[Lha;intermediary field_16513Lnet/minecraft/class_3558;field_16513:[Lnet/minecraft/class_2350;named DIRECTIONSLnet/minecraft/world/chunk/light/ChunkLightProvider;DIRECTIONS:[Lnet/minecraft/util/math/Direction;
-
field_31709
private static final int field_31709- See Also:
- Mappings:
Namespace Name Mixin selector official lLdwn;l:Iintermediary field_31709Lnet/minecraft/class_3558;field_31709:Inamed field_31709Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_31709:I
-
chunkProvider
- Mappings:
Namespace Name Mixin selector official eLdwn;e:Lded;intermediary field_15795Lnet/minecraft/class_3558;field_15795:Lnet/minecraft/class_2823;named chunkProviderLnet/minecraft/world/chunk/light/ChunkLightProvider;chunkProvider:Lnet/minecraft/world/chunk/ChunkProvider;
-
lightStorage
- Mappings:
Namespace Name Mixin selector official fLdwn;f:Ldwk;intermediary field_15793Lnet/minecraft/class_3558;field_15793:Lnet/minecraft/class_3560;named lightStorageLnet/minecraft/world/chunk/light/ChunkLightProvider;lightStorage:Lnet/minecraft/world/chunk/light/LightStorage;
-
field_44733
- Mappings:
Namespace Name Mixin selector official hLdwn;h:Lit/unimi/dsi/fastutil/longs/LongSet;intermediary field_44733Lnet/minecraft/class_3558;field_44733:Lit/unimi/dsi/fastutil/longs/LongSet;named field_44733Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44733:Lit/unimi/dsi/fastutil/longs/LongSet;
-
field_44734
- Mappings:
Namespace Name Mixin selector official iLdwn;i:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;intermediary field_44734Lnet/minecraft/class_3558;field_44734:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;named field_44734Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44734:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;
-
field_44735
- Mappings:
Namespace Name Mixin selector official jLdwn;j:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;intermediary field_44735Lnet/minecraft/class_3558;field_44735:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;named field_44735Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_44735:Lit/unimi/dsi/fastutil/longs/LongArrayFIFOQueue;
-
reusableBlockPos
- Mappings:
Namespace Name Mixin selector official kLdwn;k:Lgu$a;intermediary field_19284Lnet/minecraft/class_3558;field_19284:Lnet/minecraft/class_2338$class_2339;named reusableBlockPosLnet/minecraft/world/chunk/light/ChunkLightProvider;reusableBlockPos:Lnet/minecraft/util/math/BlockPos$Mutable;
-
cachedChunkPositions
private final long[] cachedChunkPositions- Mappings:
Namespace Name Mixin selector official mLdwn;m:[Jintermediary field_17397Lnet/minecraft/class_3558;field_17397:[Jnamed cachedChunkPositionsLnet/minecraft/world/chunk/light/ChunkLightProvider;cachedChunkPositions:[J
-
cachedChunks
- Mappings:
Namespace Name Mixin selector official nLdwn;n:[Ldec;intermediary field_17398Lnet/minecraft/class_3558;field_17398:[Lnet/minecraft/class_8527;named cachedChunksLnet/minecraft/world/chunk/light/ChunkLightProvider;cachedChunks:[Lnet/minecraft/class_8527;
-
-
Constructor Details
-
ChunkLightProvider
- Mappings:
Namespace Name Mixin selector official <init>Ldwn;<init>(Lded;Ldwk;)Vintermediary <init>Lnet/minecraft/class_3558;<init>(Lnet/minecraft/class_2823;Lnet/minecraft/class_3560;)Vnamed <init>Lnet/minecraft/world/chunk/light/ChunkLightProvider;<init>(Lnet/minecraft/world/chunk/ChunkProvider;Lnet/minecraft/world/chunk/light/LightStorage;)V
-
-
Method Details
-
method_51561
public static boolean method_51561(BlockView blockView, BlockPos blockPos, BlockState blockState, BlockState blockState2) - Mappings:
Namespace Name Mixin selector official aLdwn;a(Lcll;Lgu;Ldbt;Ldbt;)Zintermediary method_51561Lnet/minecraft/class_3558;method_51561(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Znamed method_51561Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51561(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Z
-
getRealisticOpacity
public static int getRealisticOpacity(BlockView world, BlockState state1, BlockPos pos1, BlockState state2, BlockPos pos2, Direction direction, int opacity2) - Mappings:
Namespace Name Mixin selector official aLdwn;a(Lcll;Ldbt;Lgu;Ldbt;Lgu;Lha;I)Iintermediary method_20049Lnet/minecraft/class_3558;method_20049(Lnet/minecraft/class_1922;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;I)Inamed getRealisticOpacityLnet/minecraft/world/chunk/light/ChunkLightProvider;getRealisticOpacity(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;I)I
-
method_51562
public static VoxelShape method_51562(BlockView blockView, BlockPos blockPos, BlockState blockState, Direction direction) - Mappings:
Namespace Name Mixin selector official aLdwn;a(Lcll;Lgu;Ldbt;Lha;)Leel;intermediary method_51562Lnet/minecraft/class_3558;method_51562(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;named method_51562Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51562(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;
-
method_51563
- Mappings:
Namespace Name Mixin selector official aLdwn;a(Ldbt;)Zintermediary method_51563Lnet/minecraft/class_3558;method_51563(Lnet/minecraft/class_2680;)Znamed method_51563Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51563(Lnet/minecraft/block/BlockState;)Z
-
getStateForLighting
- Mappings:
Namespace Name Mixin selector official cLdwn;c(Lgu;)Ldbt;intermediary method_50018Lnet/minecraft/class_3558;method_50018(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getStateForLightingLnet/minecraft/world/chunk/light/ChunkLightProvider;getStateForLighting(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getOpacity
- Mappings:
Namespace Name Mixin selector official aLdwn;a(Ldbt;Lgu;)Iintermediary method_50017Lnet/minecraft/class_3558;method_50017(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Inamed getOpacityLnet/minecraft/world/chunk/light/ChunkLightProvider;getOpacity(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)I
-
shapesCoverFullCube
protected boolean shapesCoverFullCube(long sourceId, BlockState sourceState, long targetId, BlockState targetState, Direction direction) - Mappings:
Namespace Name Mixin selector official aLdwn;a(JLdbt;JLdbt;Lha;)Zintermediary method_50016Lnet/minecraft/class_3558;method_50016(JLnet/minecraft/class_2680;JLnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Znamed shapesCoverFullCubeLnet/minecraft/world/chunk/light/ChunkLightProvider;shapesCoverFullCube(JLnet/minecraft/block/BlockState;JLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
-
getOpaqueShape
- Mappings:
Namespace Name Mixin selector official aLdwn;a(Ldbt;JLha;)Leel;intermediary method_20710Lnet/minecraft/class_3558;method_20710(Lnet/minecraft/class_2680;JLnet/minecraft/class_2350;)Lnet/minecraft/class_265;named getOpaqueShapeLnet/minecraft/world/chunk/light/ChunkLightProvider;getOpaqueShape(Lnet/minecraft/block/BlockState;JLnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;
-
getChunk
- Mappings:
Namespace Name Mixin selector official aLdwn;a(II)Ldec;intermediary method_17529Lnet/minecraft/class_3558;method_17529(II)Lnet/minecraft/class_8527;named getChunkLnet/minecraft/world/chunk/light/ChunkLightProvider;getChunk(II)Lnet/minecraft/class_8527;
-
clearChunkCache
private void clearChunkCache()- Mappings:
Namespace Name Mixin selector official cLdwn;c()Vintermediary method_17530Lnet/minecraft/class_3558;method_17530()Vnamed clearChunkCacheLnet/minecraft/world/chunk/light/ChunkLightProvider;clearChunkCache()V
-
checkBlock
- Specified by:
checkBlockin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLdwo;a(Lgu;)Vintermediary method_15513Lnet/minecraft/class_3565;method_15513(Lnet/minecraft/class_2338;)Vnamed checkBlockLnet/minecraft/world/chunk/light/LightingView;checkBlock(Lnet/minecraft/util/math/BlockPos;)V
-
enqueueSectionData
- Mappings:
Namespace Name Mixin selector official aLdwn;a(JLddv;)Vintermediary method_15515Lnet/minecraft/class_3558;method_15515(JLnet/minecraft/class_2804;)Vnamed enqueueSectionDataLnet/minecraft/world/chunk/light/ChunkLightProvider;enqueueSectionData(JLnet/minecraft/world/chunk/ChunkNibbleArray;)V
-
setRetainColumn
- Mappings:
Namespace Name Mixin selector official bLdwn;b(Lclm;Z)Vintermediary method_20599Lnet/minecraft/class_3558;method_20599(Lnet/minecraft/class_1923;Z)Vnamed setRetainColumnLnet/minecraft/world/chunk/light/ChunkLightProvider;setRetainColumn(Lnet/minecraft/util/math/ChunkPos;Z)V
-
setSectionStatus
- Specified by:
setSectionStatusin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLdwo;a(Lhx;Z)Vintermediary method_15551Lnet/minecraft/class_3565;method_15551(Lnet/minecraft/class_4076;Z)Vnamed setSectionStatusLnet/minecraft/world/chunk/light/LightingView;setSectionStatus(Lnet/minecraft/util/math/ChunkSectionPos;Z)V
-
setColumnEnabled
- Specified by:
setColumnEnabledin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLdwo;a(Lclm;Z)Vintermediary method_15512Lnet/minecraft/class_3565;method_15512(Lnet/minecraft/class_1923;Z)Vnamed setColumnEnabledLnet/minecraft/world/chunk/light/LightingView;setColumnEnabled(Lnet/minecraft/util/math/ChunkPos;Z)V
-
method_51564
protected void method_51564(long long2) - Mappings:
Namespace Name Mixin selector official bLdwn;b(J)Vintermediary method_51564Lnet/minecraft/class_3558;method_51564(J)Vnamed method_51564Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51564(J)V
-
doLightUpdates
public int doLightUpdates()- Specified by:
doLightUpdatesin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLdwo;a()Iintermediary method_15516Lnet/minecraft/class_3565;method_15516()Inamed doLightUpdatesLnet/minecraft/world/chunk/light/LightingView;doLightUpdates()I
-
method_51567
private int method_51567()- Mappings:
Namespace Name Mixin selector official dLdwn;d()Iintermediary method_51567Lnet/minecraft/class_3558;method_51567()Inamed method_51567Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51567()I
-
method_51570
private int method_51570()- Mappings:
Namespace Name Mixin selector official eLdwn;e()Iintermediary method_51570Lnet/minecraft/class_3558;method_51570()Inamed method_51570Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51570()I
-
method_51565
protected void method_51565(long long2, long long3) - Mappings:
Namespace Name Mixin selector official bLdwn;b(JJ)Vintermediary method_51565Lnet/minecraft/class_3558;method_51565(JJ)Vnamed method_51565Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51565(JJ)V
-
method_51566
protected void method_51566(long long2, long long3) - Mappings:
Namespace Name Mixin selector official cLdwn;c(JJ)Vintermediary method_51566Lnet/minecraft/class_3558;method_51566(JJ)Vnamed method_51566Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51566(JJ)V
-
hasUpdates
public boolean hasUpdates()- Specified by:
hasUpdatesin interfaceLightingView- Mappings:
Namespace Name Mixin selector official D_Ldwo;D_()Zintermediary method_15518Lnet/minecraft/class_3565;method_15518()Znamed hasUpdatesLnet/minecraft/world/chunk/light/LightingView;hasUpdates()Z
-
getLightSection
- Specified by:
getLightSectionin interfaceChunkLightingView- Mappings:
Namespace Name Mixin selector official aLdwj;a(Lhx;)Lddv;intermediary method_15544Lnet/minecraft/class_3562;method_15544(Lnet/minecraft/class_4076;)Lnet/minecraft/class_2804;named getLightSectionLnet/minecraft/world/chunk/light/ChunkLightingView;getLightSection(Lnet/minecraft/util/math/ChunkSectionPos;)Lnet/minecraft/world/chunk/ChunkNibbleArray;
-
getLightLevel
- Specified by:
getLightLevelin interfaceChunkLightingView- Mappings:
Namespace Name Mixin selector official bLdwj;b(Lgu;)Iintermediary method_15543Lnet/minecraft/class_3562;method_15543(Lnet/minecraft/class_2338;)Inamed getLightLevelLnet/minecraft/world/chunk/light/ChunkLightingView;getLightLevel(Lnet/minecraft/util/math/BlockPos;)I
-
displaySectionLevel
- Mappings:
Namespace Name Mixin selector official cLdwn;c(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;
-
method_51568
- Mappings:
Namespace Name Mixin selector official dLdwn;d(J)Ldwk$b;intermediary method_51568Lnet/minecraft/class_3558;method_51568(J)Lnet/minecraft/class_3560$class_8530;named method_51568Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51568(J)Lnet/minecraft/world/chunk/light/LightStorage$class_8530;
-
method_51529
protected abstract void method_51529(long long2) - Mappings:
Namespace Name Mixin selector official aLdwn;a(J)Vintermediary method_51529Lnet/minecraft/class_3558;method_51529(J)Vnamed method_51529Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51529(J)V
-
method_51531
protected abstract void method_51531(long long2, long long3, int int2) - Mappings:
Namespace Name Mixin selector official aLdwn;a(JJI)Vintermediary method_51531Lnet/minecraft/class_3558;method_51531(JJI)Vnamed method_51531Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51531(JJI)V
-
method_51530
protected abstract void method_51530(long long2, long long3) - Mappings:
Namespace Name Mixin selector official aLdwn;a(JJ)Vintermediary method_51530Lnet/minecraft/class_3558;method_51530(JJ)Vnamed method_51530Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_51530(JJ)V
-