Package net.minecraft.world.chunk.light
Class LightingProvider
java.lang.Object
net.minecraft.world.chunk.light.LightingProvider
- All Implemented Interfaces:
LightingView
- Direct Known Subclasses:
ServerLightingProvider
public class LightingProvider extends Object implements LightingView
- Mappings:
Namespace Name official dacintermediary net/minecraft/class_3568named net/minecraft/world/chunk/light/LightingProvider
-
Field Summary
Fields Modifier and Type Field Description private ChunkLightProvider<?,?>blockLightProviderprivate ChunkLightProvider<?,?>skyLightProviderprotected HeightLimitViewworld -
Constructor Summary
Constructors Constructor Description LightingProvider(ChunkProvider chunkProvider, boolean hasBlockLight, boolean hasSkyLight) -
Method Summary
Modifier and Type Method Description voidaddLightSource(BlockPos pos, int level)voidcheckBlock(BlockPos pos)StringdisplaySectionLevel(LightType lightType, ChunkSectionPos chunkSectionPos)intdoLightUpdates(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation)voidenqueueSectionData(LightType lightType, ChunkSectionPos pos, ChunkNibbleArray nibbles, boolean bool)ChunkLightingViewget(LightType lightType)intgetLight(BlockPos pos, int ambientDarkness)booleanhasUpdates()intmethod_31928()intmethod_31929()intmethod_31930()voidsetColumnEnabled(ChunkPos pos, boolean lightEnabled)voidsetRetainData(ChunkPos pos, boolean retainData)voidsetSectionStatus(ChunkSectionPos pos, boolean notReady)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
setSectionStatus
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official aLdac;a:Lbtx;intermediary field_27339Lnet/minecraft/class_3568;field_27339:Lnet/minecraft/class_5539;named worldLnet/minecraft/world/chunk/light/LightingProvider;world:Lnet/minecraft/world/HeightLimitView;
-
blockLightProvider
- Mappings:
Namespace Name Mixin selector official bLdac;b:Lczz;intermediary field_15814Lnet/minecraft/class_3568;field_15814:Lnet/minecraft/class_3558;named blockLightProviderLnet/minecraft/world/chunk/light/LightingProvider;blockLightProvider:Lnet/minecraft/world/chunk/light/ChunkLightProvider;
-
skyLightProvider
- Mappings:
Namespace Name Mixin selector official cLdac;c:Lczz;intermediary field_15813Lnet/minecraft/class_3568;field_15813:Lnet/minecraft/class_3558;named skyLightProviderLnet/minecraft/world/chunk/light/LightingProvider;skyLightProvider:Lnet/minecraft/world/chunk/light/ChunkLightProvider;
-
-
Constructor Details
-
LightingProvider
- Mappings:
Namespace Name Mixin selector official <init>Ldac;<init>(Lcjy;ZZ)Vintermediary <init>Lnet/minecraft/class_3568;<init>(Lnet/minecraft/class_2823;ZZ)Vnamed <init>Lnet/minecraft/world/chunk/light/LightingProvider;<init>(Lnet/minecraft/world/chunk/ChunkProvider;ZZ)V
-
-
Method Details
-
checkBlock
- Mappings:
Namespace Name Mixin selector official aLdac;a(Lfx;)Vintermediary method_15559Lnet/minecraft/class_3568;method_15559(Lnet/minecraft/class_2338;)Vnamed checkBlockLnet/minecraft/world/chunk/light/LightingProvider;checkBlock(Lnet/minecraft/util/math/BlockPos;)V
-
addLightSource
- Mappings:
Namespace Name Mixin selector official aLdac;a(Lfx;I)Vintermediary method_15560Lnet/minecraft/class_3568;method_15560(Lnet/minecraft/class_2338;I)Vnamed addLightSourceLnet/minecraft/world/chunk/light/LightingProvider;addLightSource(Lnet/minecraft/util/math/BlockPos;I)V
-
hasUpdates
public boolean hasUpdates()- Mappings:
Namespace Name Mixin selector official aLdac;a()Zintermediary method_15561Lnet/minecraft/class_3568;method_15561()Znamed hasUpdatesLnet/minecraft/world/chunk/light/LightingProvider;hasUpdates()Z
-
doLightUpdates
public int doLightUpdates(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation)- Mappings:
Namespace Name Mixin selector official aLdac;a(IZZ)Iintermediary method_15563Lnet/minecraft/class_3568;method_15563(IZZ)Inamed doLightUpdatesLnet/minecraft/world/chunk/light/LightingProvider;doLightUpdates(IZZ)I
-
setSectionStatus
- Specified by:
setSectionStatusin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLdad;a(Lgq;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
- Mappings:
Namespace Name Mixin selector official aLdac;a(Lbta;Z)Vintermediary method_15557Lnet/minecraft/class_3568;method_15557(Lnet/minecraft/class_1923;Z)Vnamed setColumnEnabledLnet/minecraft/world/chunk/light/LightingProvider;setColumnEnabled(Lnet/minecraft/util/math/ChunkPos;Z)V
-
get
- Mappings:
Namespace Name Mixin selector official aLdac;a(Lbue;)Ldaa;intermediary method_15562Lnet/minecraft/class_3568;method_15562(Lnet/minecraft/class_1944;)Lnet/minecraft/class_3562;named getLnet/minecraft/world/chunk/light/LightingProvider;get(Lnet/minecraft/world/LightType;)Lnet/minecraft/world/chunk/light/ChunkLightingView;
-
displaySectionLevel
@Environment(CLIENT) public String displaySectionLevel(LightType lightType, ChunkSectionPos chunkSectionPos)- Mappings:
Namespace Name Mixin selector official aLdac;a(Lbue;Lgq;)Ljava/lang/String;intermediary method_22876Lnet/minecraft/class_3568;method_22876(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;)Ljava/lang/String;named displaySectionLevelLnet/minecraft/world/chunk/light/LightingProvider;displaySectionLevel(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;)Ljava/lang/String;
-
enqueueSectionData
public void enqueueSectionData(LightType lightType, ChunkSectionPos pos, @Nullable ChunkNibbleArray nibbles, boolean bool)- Mappings:
Namespace Name Mixin selector official aLdac;a(Lbue;Lgq;Lcjq;Z)Vintermediary method_15558Lnet/minecraft/class_3568;method_15558(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;Lnet/minecraft/class_2804;Z)Vnamed enqueueSectionDataLnet/minecraft/world/chunk/light/LightingProvider;enqueueSectionData(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/chunk/ChunkNibbleArray;Z)V
-
setRetainData
- Mappings:
Namespace Name Mixin selector official bLdac;b(Lbta;Z)Vintermediary method_20601Lnet/minecraft/class_3568;method_20601(Lnet/minecraft/class_1923;Z)Vnamed setRetainDataLnet/minecraft/world/chunk/light/LightingProvider;setRetainData(Lnet/minecraft/util/math/ChunkPos;Z)V
-
getLight
- Mappings:
Namespace Name Mixin selector official bLdac;b(Lfx;I)Iintermediary method_22363Lnet/minecraft/class_3568;method_22363(Lnet/minecraft/class_2338;I)Inamed getLightLnet/minecraft/world/chunk/light/LightingProvider;getLight(Lnet/minecraft/util/math/BlockPos;I)I
-
method_31928
public int method_31928()- Mappings:
Namespace Name Mixin selector official bLdac;b()Iintermediary method_31928Lnet/minecraft/class_3568;method_31928()Inamed method_31928Lnet/minecraft/world/chunk/light/LightingProvider;method_31928()I
-
method_31929
public int method_31929()- Mappings:
Namespace Name Mixin selector official cLdac;c()Iintermediary method_31929Lnet/minecraft/class_3568;method_31929()Inamed method_31929Lnet/minecraft/world/chunk/light/LightingProvider;method_31929()I
-
method_31930
public int method_31930()- Mappings:
Namespace Name Mixin selector official dLdac;d()Iintermediary method_31930Lnet/minecraft/class_3568;method_31930()Inamed method_31930Lnet/minecraft/world/chunk/light/LightingProvider;method_31930()I
-