Interface IFakeLevelLightProvider

All Known Implementing Classes:
IFakeLevelLightProvider.ConfigBasedLightProvider

public interface IFakeLevelLightProvider
Loosely based on BlockAndTintGetter
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Simple light level config
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returning false here means no other method from this iface will get called and all logic will be redirected to current client level.
    int
    getBlockLight(net.minecraft.core.BlockPos pos)
     
    default int
    getBrightness(net.minecraft.world.level.LightLayer lightLayer, net.minecraft.core.BlockPos pos)
     
    default long
     
    default int
    getRawBrightness(net.minecraft.core.BlockPos pos, int skyAmount)
     
    int
     
    default int
    getSkyLight(net.minecraft.core.BlockPos pos)
     
  • Field Details

  • Method Details

    • forceOwnLightLevel

      boolean forceOwnLightLevel()
      Returning false here means no other method from this iface will get called and all logic will be redirected to current client level.
      Returns:
      false if client level should be used instead
    • getBlockLight

      int getBlockLight(net.minecraft.core.BlockPos pos)
      Returns:
      0-15 lighting level for given pos
    • getSkyDarken

      int getSkyDarken()
      Returns:
      sth sth vanilla daylight progress?
    • getDayTime

      default long getDayTime()
      Returns:
      day time from 0 to 24000
    • getSkyLight

      default int getSkyLight(net.minecraft.core.BlockPos pos)
      Returns:
      0-15 lighting level for given pos
    • getBrightness

      default int getBrightness(net.minecraft.world.level.LightLayer lightLayer, net.minecraft.core.BlockPos pos)
      Returns:
      0-15 lighting level for given pos
    • getRawBrightness

      default int getRawBrightness(net.minecraft.core.BlockPos pos, int skyAmount)
      Returns:
      0-15 lighting level for given pos