Class CustomLevelLightEngine
java.lang.Object
net.minecraft.world.level.lighting.LevelLightEngine
com.pixelmonmod.pixelmon.api.dummy.CustomLevelLightEngine
- All Implemented Interfaces:
net.minecraft.world.level.lighting.LightEventListener
public class CustomLevelLightEngine
extends net.minecraft.world.level.lighting.LevelLightEngine
-
Field Summary
Fields inherited from class net.minecraft.world.level.lighting.LevelLightEngine
levelHeightAccessor, LIGHT_SECTION_PADDING -
Constructor Summary
ConstructorsConstructorDescriptionCustomLevelLightEngine(net.minecraft.world.level.chunk.LightChunkGetter lightChunkGetter, boolean blockLight, boolean skyLight) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.lighting.LayerLightEventListenergetLayerListener(net.minecraft.world.level.LightLayer type) intgetRawBrightness(net.minecraft.core.BlockPos blockPos, int amount) booleanlightOnInSection(net.minecraft.core.SectionPos sectionPos) Methods inherited from class net.minecraft.world.level.lighting.LevelLightEngine
checkBlock, getDebugData, getDebugSectionType, getLightSectionCount, getMaxLightSection, getMinLightSection, hasLightWork, propagateLightSources, queueSectionData, retainData, runLightUpdates, setLightEnabled, updateSectionStatusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.lighting.LightEventListener
updateSectionStatus
-
Constructor Details
-
CustomLevelLightEngine
public CustomLevelLightEngine(net.minecraft.world.level.chunk.LightChunkGetter lightChunkGetter, boolean blockLight, boolean skyLight)
-
-
Method Details
-
getLayerListener
public net.minecraft.world.level.lighting.LayerLightEventListener getLayerListener(net.minecraft.world.level.LightLayer type) - Overrides:
getLayerListenerin classnet.minecraft.world.level.lighting.LevelLightEngine
-
lightOnInSection
public boolean lightOnInSection(net.minecraft.core.SectionPos sectionPos) - Overrides:
lightOnInSectionin classnet.minecraft.world.level.lighting.LevelLightEngine
-
getRawBrightness
public int getRawBrightness(net.minecraft.core.BlockPos blockPos, int amount) - Overrides:
getRawBrightnessin classnet.minecraft.world.level.lighting.LevelLightEngine
-