Package net.minecraft.world.chunk.light
Class ChunkLightProvider<M extends ChunkToNibbleArrayMap<M>,S extends LightStorage<M>>
java.lang.Object
net.minecraft.world.chunk.light.LevelPropagator
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 LevelPropagator
implements ChunkLightingView
- Mappings:
Namespace Name official dwbintermediary net/minecraft/class_3558named net/minecraft/world/chunk/light/ChunkLightProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.chunk.light.ChunkLightingView
ChunkLightingView.Empty -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long[]private final BlockView[]protected final ChunkProviderprivate static final Direction[]private booleanprivate static final intprotected final Sprotected final BlockPos.MutableFields inherited from class net.minecraft.world.chunk.light.LevelPropagator
field_43397, levelCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLightSource(BlockPos pos, int level) voidcheckBlock(BlockPos pos) private voiddisplaySectionLevel(long sectionPos) intdoLightUpdates(int int2, boolean doSkylight, boolean skipEdgeLightPropagation) protected voidenqueueSectionData(long sectionPos, @Nullable ChunkNibbleArray lightArray, boolean nonEdge) getChunk(int chunkX, int chunkZ) protected intgetCurrentLevelFromSection(ChunkNibbleArray section, long blockPos) protected intgetLevel(long id) intgetLightLevel(BlockPos pos) private VoxelShapegetOpaqueShape(BlockState world, long pos, Direction facing) protected intgetPropagatedLevel(long sourceId, long targetId, int level) static intgetRealisticOpacity(BlockView world, BlockState state1, BlockPos pos1, BlockState state2, BlockPos pos2, Direction direction, int opacity2) booleanmethod_50015(long long2, long long3) protected booleanmethod_50016(long long2, BlockState blockState, long long3, BlockState blockState2, Direction direction) protected intmethod_50017(BlockState blockState, BlockPos blockPos) protected BlockStatemethod_50018(BlockPos blockPos) protected intrecalculateLevel(long id, long excludedId, int maxLevel) protected voidresetLevel(long id) voidsetColumnEnabled(ChunkPos pos, boolean retainData) protected voidsetLevel(long id, int level) voidsetRetainColumn(ChunkPos pos, boolean retainData) voidsetSectionStatus(ChunkSectionPos pos, boolean notReady) Methods inherited from class net.minecraft.world.chunk.light.LevelPropagator
applyPendingUpdates, getPendingUpdateCount, hasPendingUpdates, isMarker, propagateLevel, 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 dLdwb;d:[Lgz;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 hLdwb;h: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 aLdwb;a:Lddw;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 bLdwb;b:Ldwd;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_15794
private boolean field_15794- Mappings:
Namespace Name Mixin selector official gLdwb;g:Zintermediary field_15794Lnet/minecraft/class_3558;field_15794:Znamed field_15794Lnet/minecraft/world/chunk/light/ChunkLightProvider;field_15794:Z
-
reusableBlockPos
- Mappings:
Namespace Name Mixin selector official cLdwb;c:Lgt$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 iLdwb;i:[Jintermediary field_17397Lnet/minecraft/class_3558;field_17397:[Jnamed cachedChunkPositionsLnet/minecraft/world/chunk/light/ChunkLightProvider;cachedChunkPositions:[J
-
cachedChunks
- Mappings:
Namespace Name Mixin selector official jLdwb;j:[Lcle;intermediary field_17398Lnet/minecraft/class_3558;field_17398:[Lnet/minecraft/class_1922;named cachedChunksLnet/minecraft/world/chunk/light/ChunkLightProvider;cachedChunks:[Lnet/minecraft/world/BlockView;
-
-
Constructor Details
-
ChunkLightProvider
- Mappings:
Namespace Name Mixin selector official <init>Ldwb;<init>(Lddw;Ldwd;)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
-
resetLevel
protected void resetLevel(long id) - Overrides:
resetLevelin classLevelPropagator- Mappings:
Namespace Name Mixin selector official fLdwa;f(J)Vintermediary method_15491Lnet/minecraft/class_3554;method_15491(J)Vnamed resetLevelLnet/minecraft/world/chunk/light/LevelPropagator;resetLevel(J)V
-
getChunk
- Mappings:
Namespace Name Mixin selector official aLdwb;a(II)Lcle;intermediary method_17529Lnet/minecraft/class_3558;method_17529(II)Lnet/minecraft/class_1922;named getChunkLnet/minecraft/world/chunk/light/ChunkLightProvider;getChunk(II)Lnet/minecraft/world/BlockView;
-
clearChunkCache
private void clearChunkCache()- Mappings:
Namespace Name Mixin selector official dLdwb;d()Vintermediary method_17530Lnet/minecraft/class_3558;method_17530()Vnamed clearChunkCacheLnet/minecraft/world/chunk/light/ChunkLightProvider;clearChunkCache()V
-
method_50018
- Mappings:
Namespace Name Mixin selector official bLdwb;b(Lgt;)Ldbm;intermediary method_50018Lnet/minecraft/class_3558;method_50018(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named method_50018Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_50018(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
method_50017
- Mappings:
Namespace Name Mixin selector official aLdwb;a(Ldbm;Lgt;)Iintermediary method_50017Lnet/minecraft/class_3558;method_50017(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Inamed method_50017Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_50017(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)I
-
method_50016
protected boolean method_50016(long long2, BlockState blockState, long long3, BlockState blockState2, Direction direction) - Mappings:
Namespace Name Mixin selector official aLdwb;a(JLdbm;JLdbm;Lgz;)Zintermediary method_50016Lnet/minecraft/class_3558;method_50016(JLnet/minecraft/class_2680;JLnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Znamed method_50016Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_50016(JLnet/minecraft/block/BlockState;JLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
-
getOpaqueShape
- Mappings:
Namespace Name Mixin selector official aLdwb;a(Ldbm;JLgz;)Leec;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;
-
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 aLdwb;a(Lcle;Ldbm;Lgt;Ldbm;Lgt;Lgz;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_50015
- Mappings:
Namespace Name Mixin selector official aLdwb;a(JJ)Lgz;intermediary method_50015Lnet/minecraft/class_3558;method_50015(JJ)Lnet/minecraft/class_2350;named method_50015Lnet/minecraft/world/chunk/light/ChunkLightProvider;method_50015(JJ)Lnet/minecraft/util/math/Direction;
-
recalculateLevel
protected int recalculateLevel(long id, long excludedId, int maxLevel) - Specified by:
recalculateLevelin classLevelPropagator- Mappings:
Namespace Name Mixin selector official aLdwa;a(JJI)Iintermediary method_15486Lnet/minecraft/class_3554;method_15486(JJI)Inamed recalculateLevelLnet/minecraft/world/chunk/light/LevelPropagator;recalculateLevel(JJI)I
-
getLevel
protected int getLevel(long id) - Specified by:
getLevelin classLevelPropagator- Mappings:
Namespace Name Mixin selector official cLdwa;c(J)Iintermediary method_15480Lnet/minecraft/class_3554;method_15480(J)Inamed getLevelLnet/minecraft/world/chunk/light/LevelPropagator;getLevel(J)I
-
getCurrentLevelFromSection
- Mappings:
Namespace Name Mixin selector official aLdwb;a(Lddp;J)Iintermediary method_15517Lnet/minecraft/class_3558;method_15517(Lnet/minecraft/class_2804;J)Inamed getCurrentLevelFromSectionLnet/minecraft/world/chunk/light/ChunkLightProvider;getCurrentLevelFromSection(Lnet/minecraft/world/chunk/ChunkNibbleArray;J)I
-
setLevel
protected void setLevel(long id, int level) - Specified by:
setLevelin classLevelPropagator- Mappings:
Namespace Name Mixin selector official aLdwa;a(JI)Vintermediary method_15485Lnet/minecraft/class_3554;method_15485(JI)Vnamed setLevelLnet/minecraft/world/chunk/light/LevelPropagator;setLevel(JI)V
-
getPropagatedLevel
protected int getPropagatedLevel(long sourceId, long targetId, int level) - Specified by:
getPropagatedLevelin classLevelPropagator- Mappings:
Namespace Name Mixin selector official bLdwa;b(JJI)Iintermediary method_15488Lnet/minecraft/class_3554;method_15488(JJI)Inamed getPropagatedLevelLnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)I
-
hasUpdates
public boolean hasUpdates()- Specified by:
hasUpdatesin interfaceLightingView- Mappings:
Namespace Name Mixin selector official D_Ldwg;D_()Zintermediary method_15518Lnet/minecraft/class_3565;method_15518()Znamed hasUpdatesLnet/minecraft/world/chunk/light/LightingView;hasUpdates()Z
-
doLightUpdates
public int doLightUpdates(int int2, boolean doSkylight, boolean skipEdgeLightPropagation) - Specified by:
doLightUpdatesin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLdwg;a(IZZ)Iintermediary method_15516Lnet/minecraft/class_3565;method_15516(IZZ)Inamed doLightUpdatesLnet/minecraft/world/chunk/light/LightingView;doLightUpdates(IZZ)I
-
enqueueSectionData
protected void enqueueSectionData(long sectionPos, @Nullable @Nullable ChunkNibbleArray lightArray, boolean nonEdge) - Mappings:
Namespace Name Mixin selector official aLdwb;a(JLddp;Z)Vintermediary method_15515Lnet/minecraft/class_3558;method_15515(JLnet/minecraft/class_2804;Z)Vnamed enqueueSectionDataLnet/minecraft/world/chunk/light/ChunkLightProvider;enqueueSectionData(JLnet/minecraft/world/chunk/ChunkNibbleArray;Z)V
-
getLightSection
- Specified by:
getLightSectionin interfaceChunkLightingView- Mappings:
Namespace Name Mixin selector official aLdwc;a(Lhw;)Lddp;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 cLdwc;c(Lgt;)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 bLdwb;b(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;
-
checkBlock
- Specified by:
checkBlockin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLdwg;a(Lgt;)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
-
addLightSource
- Specified by:
addLightSourcein interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLdwg;a(Lgt;I)Vintermediary method_15514Lnet/minecraft/class_3565;method_15514(Lnet/minecraft/class_2338;I)Vnamed addLightSourceLnet/minecraft/world/chunk/light/LightingView;addLightSource(Lnet/minecraft/util/math/BlockPos;I)V
-
setSectionStatus
- Specified by:
setSectionStatusin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLdwg;a(Lhw;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 aLdwg;a(Lclf;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
-
setRetainColumn
- Mappings:
Namespace Name Mixin selector official bLdwb;b(Lclf;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
-