Class FakeLevelLightEngine

java.lang.Object
net.minecraft.world.level.lighting.LevelLightEngine
com.ldtteam.structurize.client.fakelevel.FakeLevelLightEngine
All Implemented Interfaces:
net.minecraft.world.level.lighting.LightEventListener

public class FakeLevelLightEngine extends net.minecraft.world.level.lighting.LevelLightEngine
Porting: class is relatively small, just check super class manually (all of missing methods are/were just aliases)
  • Field Summary

    Fields inherited from class net.minecraft.world.level.lighting.LevelLightEngine

    levelHeightAccessor, LIGHT_SECTION_PADDING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkBlock(net.minecraft.core.BlockPos p_75823_)
     
    getDebugData(net.minecraft.world.level.LightLayer p_75817_, net.minecraft.core.SectionPos p_75818_)
     
    net.minecraft.world.level.lighting.LayerLightSectionStorage.SectionType
    getDebugSectionType(net.minecraft.world.level.LightLayer p_285008_, net.minecraft.core.SectionPos p_285336_)
     
    net.minecraft.world.level.lighting.LayerLightEventListener
    getLayerListener(net.minecraft.world.level.LightLayer p_75815_)
     
    int
    getRawBrightness(net.minecraft.core.BlockPos p_75832_, int p_75833_)
     
    boolean
     
    boolean
    lightOnInSection(net.minecraft.core.SectionPos p_285319_)
     
    void
    propagateLightSources(net.minecraft.world.level.ChunkPos p_284998_)
     
    void
    queueSectionData(net.minecraft.world.level.LightLayer p_285328_, net.minecraft.core.SectionPos p_284962_, net.minecraft.world.level.chunk.DataLayer p_285035_)
     
    void
    retainData(net.minecraft.world.level.ChunkPos p_75829_, boolean p_75830_)
     
    int
     
    void
    setLightEnabled(net.minecraft.world.level.ChunkPos p_285439_, boolean p_285012_)
     
    void
    updateSectionStatus(net.minecraft.core.BlockPos p_75835_, boolean p_75836_)
     
    void
    updateSectionStatus(net.minecraft.core.SectionPos p_75827_, boolean p_75828_)
     

    Methods inherited from class net.minecraft.world.level.lighting.LevelLightEngine

    getLightSectionCount, getMaxLightSection, getMinLightSection

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FakeLevelLightEngine

      public FakeLevelLightEngine(FakeLevel level)
  • Method Details

    • getRawBrightness

      public int getRawBrightness(net.minecraft.core.BlockPos p_75832_, int p_75833_)
      Overrides:
      getRawBrightness in class net.minecraft.world.level.lighting.LevelLightEngine
    • getDebugData

      public String getDebugData(net.minecraft.world.level.LightLayer p_75817_, net.minecraft.core.SectionPos p_75818_)
      Overrides:
      getDebugData in class net.minecraft.world.level.lighting.LevelLightEngine
    • getLayerListener

      public net.minecraft.world.level.lighting.LayerLightEventListener getLayerListener(net.minecraft.world.level.LightLayer p_75815_)
      Overrides:
      getLayerListener in class net.minecraft.world.level.lighting.LevelLightEngine
    • getDebugSectionType

      public net.minecraft.world.level.lighting.LayerLightSectionStorage.SectionType getDebugSectionType(net.minecraft.world.level.LightLayer p_285008_, net.minecraft.core.SectionPos p_285336_)
      Overrides:
      getDebugSectionType in class net.minecraft.world.level.lighting.LevelLightEngine
    • lightOnInSection

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

      public void checkBlock(net.minecraft.core.BlockPos p_75823_)
      Specified by:
      checkBlock in interface net.minecraft.world.level.lighting.LightEventListener
      Overrides:
      checkBlock in class net.minecraft.world.level.lighting.LevelLightEngine
    • hasLightWork

      public boolean hasLightWork()
      Specified by:
      hasLightWork in interface net.minecraft.world.level.lighting.LightEventListener
      Overrides:
      hasLightWork in class net.minecraft.world.level.lighting.LevelLightEngine
    • propagateLightSources

      public void propagateLightSources(net.minecraft.world.level.ChunkPos p_284998_)
      Specified by:
      propagateLightSources in interface net.minecraft.world.level.lighting.LightEventListener
      Overrides:
      propagateLightSources in class net.minecraft.world.level.lighting.LevelLightEngine
    • queueSectionData

      public void queueSectionData(net.minecraft.world.level.LightLayer p_285328_, net.minecraft.core.SectionPos p_284962_, net.minecraft.world.level.chunk.DataLayer p_285035_)
      Overrides:
      queueSectionData in class net.minecraft.world.level.lighting.LevelLightEngine
    • retainData

      public void retainData(net.minecraft.world.level.ChunkPos p_75829_, boolean p_75830_)
      Overrides:
      retainData in class net.minecraft.world.level.lighting.LevelLightEngine
    • runLightUpdates

      public int runLightUpdates()
      Specified by:
      runLightUpdates in interface net.minecraft.world.level.lighting.LightEventListener
      Overrides:
      runLightUpdates in class net.minecraft.world.level.lighting.LevelLightEngine
    • setLightEnabled

      public void setLightEnabled(net.minecraft.world.level.ChunkPos p_285439_, boolean p_285012_)
      Specified by:
      setLightEnabled in interface net.minecraft.world.level.lighting.LightEventListener
      Overrides:
      setLightEnabled in class net.minecraft.world.level.lighting.LevelLightEngine
    • updateSectionStatus

      public void updateSectionStatus(net.minecraft.core.SectionPos p_75827_, boolean p_75828_)
      Specified by:
      updateSectionStatus in interface net.minecraft.world.level.lighting.LightEventListener
      Overrides:
      updateSectionStatus in class net.minecraft.world.level.lighting.LevelLightEngine
    • updateSectionStatus

      public void updateSectionStatus(net.minecraft.core.BlockPos p_75835_, boolean p_75836_)