Class IFakeLevelLightProvider.ConfigBasedLightProvider
java.lang.Object
com.ldtteam.structurize.client.fakelevel.IFakeLevelLightProvider.ConfigBasedLightProvider
- All Implemented Interfaces:
IFakeLevelLightProvider
- Enclosing interface:
- IFakeLevelLightProvider
public static class IFakeLevelLightProvider.ConfigBasedLightProvider
extends Object
implements IFakeLevelLightProvider
Simple light level config
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ldtteam.structurize.client.fakelevel.IFakeLevelLightProvider
IFakeLevelLightProvider.ConfigBasedLightProvider -
Field Summary
Fields inherited from interface com.ldtteam.structurize.client.fakelevel.IFakeLevelLightProvider
USE_CLIENT_LEVEL -
Constructor Summary
ConstructorsConstructorDescriptionConfigBasedLightProvider(net.minecraftforge.common.ForgeConfigSpec.IntValue configValue) -
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) intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ldtteam.structurize.client.fakelevel.IFakeLevelLightProvider
getBrightness, getDayTime, getRawBrightness, getSkyLight
-
Constructor Details
-
ConfigBasedLightProvider
public ConfigBasedLightProvider(net.minecraftforge.common.ForgeConfigSpec.IntValue configValue)
-
-
Method Details
-
forceOwnLightLevel
public boolean forceOwnLightLevel()Description copied from interface:IFakeLevelLightProviderReturning false here means no other method from this iface will get called and all logic will be redirected to current client level.- Specified by:
forceOwnLightLevelin interfaceIFakeLevelLightProvider- Returns:
- false if client level should be used instead
-
getBlockLight
public int getBlockLight(net.minecraft.core.BlockPos pos) - Specified by:
getBlockLightin interfaceIFakeLevelLightProvider- Returns:
- 0-15 lighting level for given pos
-
getSkyDarken
public int getSkyDarken()- Specified by:
getSkyDarkenin interfaceIFakeLevelLightProvider- Returns:
- sth sth vanilla daylight progress?
-