Interface IFakeLevelLightProvider
- All Known Implementing Classes:
IFakeLevelLightProvider.ConfigBasedLightProvider
public interface IFakeLevelLightProvider
Loosely based on
BlockAndTintGetter-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classSimple light level config -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturning false here means no other method from this iface will get called and all logic will be redirected to current client level.intgetBlockLight(net.minecraft.core.BlockPos pos) default intgetBrightness(net.minecraft.world.level.LightLayer lightLayer, net.minecraft.core.BlockPos pos) default longdefault intgetRawBrightness(net.minecraft.core.BlockPos pos, int skyAmount) intdefault intgetSkyLight(net.minecraft.core.BlockPos pos)
-
Field Details
-
USE_CLIENT_LEVEL
-
-
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
-