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

    Constructors
    Constructor
    Description
    CustomLevelLightEngine(net.minecraft.world.level.chunk.LightChunkGetter lightChunkGetter, boolean blockLight, boolean skyLight)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.lighting.LayerLightEventListener
    getLayerListener(net.minecraft.world.level.LightLayer type)
     
    int
    getRawBrightness(net.minecraft.core.BlockPos blockPos, int amount)
     
    boolean
    lightOnInSection(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, updateSectionStatus

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      getLayerListener in class net.minecraft.world.level.lighting.LevelLightEngine
    • lightOnInSection

      public boolean lightOnInSection(net.minecraft.core.SectionPos sectionPos)
      Overrides:
      lightOnInSection in class net.minecraft.world.level.lighting.LevelLightEngine
    • getRawBrightness

      public int getRawBrightness(net.minecraft.core.BlockPos blockPos, int amount)
      Overrides:
      getRawBrightness in class net.minecraft.world.level.lighting.LevelLightEngine