Package de.cech12.unlitcampfire.platform
Class ForgeConfigHelper
java.lang.Object
de.cech12.unlitcampfire.platform.ForgeConfigHelper
- All Implemented Interfaces:
IConfigHelper
The config service implementation for Forge.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraftforge.common.ForgeConfigSpec.BooleanValuestatic final net.minecraftforge.common.ForgeConfigSpec.BooleanValuestatic final net.minecraftforge.common.ForgeConfigSpec.BooleanValuestatic final net.minecraftforge.common.ForgeConfigSpec.IntValuestatic final net.minecraftforge.common.ForgeConfigSpec.IntValuestatic final net.minecraftforge.common.ForgeConfigSpec.IntValuestatic final net.minecraftforge.common.ForgeConfigSpec.IntValuestatic final net.minecraftforge.common.ForgeConfigSpec.IntValuestatic final net.minecraftforge.common.ForgeConfigSpec.BooleanValuestatic final net.minecraftforge.common.ForgeConfigSpec.BooleanValuestatic final net.minecraftforge.common.ForgeConfigSpec.BooleanValuestatic final net.minecraftforge.common.ForgeConfigSpec.BooleanValuestatic final net.minecraftforge.common.ForgeConfigSpec.BooleanValuestatic final net.minecraftforge.common.ForgeConfigSpec.BooleanValuestatic final net.minecraftforge.common.ForgeConfigSpec.BooleanValuestatic final net.minecraftforge.common.ForgeConfigSpec.IntValuestatic final net.minecraftforge.common.ForgeConfigSpec.IntValuestatic final net.minecraftforge.common.ForgeConfigSpec.IntValuestatic final net.minecraftforge.common.ForgeConfigSpec.IntValuestatic final net.minecraftforge.common.ForgeConfigSpec.IntValueFields inherited from interface de.cech12.unlitcampfire.platform.services.IConfigHelper
CAMPFIRE_ADDING_BURNABLES_DEFAULT, CAMPFIRE_ADDING_BURNABLES_DESCRIPTION, CAMPFIRE_AFFECTED_BY_SLEEP_TIME_DEFAULT, CAMPFIRE_AFFECTED_BY_SLEEP_TIME_DESCRIPTION, CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME_DEFAULT, CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME_DESCRIPTION, CAMPFIRE_LIT_TIME_DEFAULT, CAMPFIRE_LIT_TIME_DESCRIPTION, CAMPFIRE_LIT_TIME_MAX, CAMPFIRE_LIT_TIME_MIN, CAMPFIRE_MAX_LIT_TIME_EXTENSION_DEFAULT, CAMPFIRE_MAX_LIT_TIME_EXTENSION_DESCRIPTION, CAMPFIRE_MAX_LIT_TIME_EXTENSION_MAX, CAMPFIRE_MAX_LIT_TIME_EXTENSION_MIN, CAMPFIRE_RAIN_PARTICLE_FACTOR_DEFAULT, CAMPFIRE_RAIN_PARTICLE_FACTOR_DESCRIPTION, CAMPFIRE_RAIN_PARTICLE_FACTOR_MAX, CAMPFIRE_RAIN_PARTICLE_FACTOR_MIN, CAMPFIRE_RAIN_UNLIT_TIME_DEFAULT, CAMPFIRE_RAIN_UNLIT_TIME_DESCRIPTION, CAMPFIRE_RAIN_UNLIT_TIME_MAX, CAMPFIRE_RAIN_UNLIT_TIME_MIN, CAMPFIRE_RUN_OUT_INDICATOR_TIME_DEFAULT, CAMPFIRE_RUN_OUT_INDICATOR_TIME_DESCRIPTION, CAMPFIRE_RUN_OUT_INDICATOR_TIME_MAX, CAMPFIRE_RUN_OUT_INDICATOR_TIME_MIN, GENERATED_CAMPFIRE_IS_LIT_INFINITELY_DEFAULT, GENERATED_CAMPFIRE_IS_LIT_INFINITELY_DESCRIPTION, GENERATED_SOUL_CAMPFIRE_IS_LIT_INFINITELY_DEFAULT, GENERATED_SOUL_CAMPFIRE_IS_LIT_INFINITELY_DESCRIPTION, INFINITE_CAMPFIRE_IGNORES_RAIN_DEFAULT, INFINITE_CAMPFIRE_IGNORES_RAIN_DESCRIPTION, INFINITE_SOUL_CAMPFIRE_IGNORES_RAIN_DEFAULT, INFINITE_SOUL_CAMPFIRE_IGNORES_RAIN_DESCRIPTION, SOUL_CAMPFIRE_ADDING_BURNABLES_DEFAULT, SOUL_CAMPFIRE_ADDING_BURNABLES_DESCRIPTION, SOUL_CAMPFIRE_AFFECTED_BY_SLEEP_TIME_DEFAULT, SOUL_CAMPFIRE_AFFECTED_BY_SLEEP_TIME_DESCRIPTION, SOUL_CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME_DEFAULT, SOUL_CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME_DESCRIPTION, SOUL_CAMPFIRE_LIT_TIME_DEFAULT, SOUL_CAMPFIRE_LIT_TIME_DESCRIPTION, SOUL_CAMPFIRE_LIT_TIME_MAX, SOUL_CAMPFIRE_LIT_TIME_MIN, SOUL_CAMPFIRE_MAX_LIT_TIME_EXTENSION_DEFAULT, SOUL_CAMPFIRE_MAX_LIT_TIME_EXTENSION_DESCRIPTION, SOUL_CAMPFIRE_MAX_LIT_TIME_EXTENSION_MAX, SOUL_CAMPFIRE_MAX_LIT_TIME_EXTENSION_MIN, SOUL_CAMPFIRE_RAIN_PARTICLE_FACTOR_DEFAULT, SOUL_CAMPFIRE_RAIN_PARTICLE_FACTOR_DESCRIPTION, SOUL_CAMPFIRE_RAIN_PARTICLE_FACTOR_MAX, SOUL_CAMPFIRE_RAIN_PARTICLE_FACTOR_MIN, SOUL_CAMPFIRE_RAIN_UNLIT_TIME_DEFAULT, SOUL_CAMPFIRE_RAIN_UNLIT_TIME_DESCRIPTION, SOUL_CAMPFIRE_RAIN_UNLIT_TIME_MAX, SOUL_CAMPFIRE_RAIN_UNLIT_TIME_MIN, SOUL_CAMPFIRE_RUN_OUT_INDICATOR_TIME_DEFAULT, SOUL_CAMPFIRE_RUN_OUT_INDICATOR_TIME_DESCRIPTION, SOUL_CAMPFIRE_RUN_OUT_INDICATOR_TIME_MAX, SOUL_CAMPFIRE_RUN_OUT_INDICATOR_TIME_MIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAddBurnables(boolean isSoulCampfire) Gets the configured "adding burnables" value.intgetLitTime(boolean isSoulCampfire) Gets the configured lit time value.intgetMaxLitTimeExtension(boolean isSoulCampfire) Gets the configured max lit time extension value.intgetRainParticleFactor(boolean isSoulCampfire) Gets the configured rain particle factor value.intgetRainUnlitTime(boolean isSoulCampfire) Gets the configured rain unlit time value.intgetRunOutIndicatorTime(boolean isSoulCampfire) Gets the configured "runs out" indicator time value.voidinit()Initialization method for the Service implementations.booleanisAffectedBySleepTime(boolean isSoulCampfire) Gets the configured "affected by sleep time" value.booleanisBreakingWhenUnlitByTime(boolean isSoulCampfire) Gets the configured "breaks when unlit by time" value.booleanisGeneratedCampfireLitInfinitely(boolean isSoulCampfire) Gets the configured "generated campfire is lit infinitely" value.booleanisInfiniteCampfireIgnoringRain(boolean isSoulCampfire) Gets the configured "infinite campfire ignores rain" value.static voidonChange(net.minecraftforge.fml.event.config.ModConfigEvent.Reloading configEvent) static voidonLoad(net.minecraftforge.fml.event.config.ModConfigEvent.Loading configEvent)
-
Field Details
-
CAMPFIRE_LIT_TIME
public static final net.minecraftforge.common.ForgeConfigSpec.IntValue CAMPFIRE_LIT_TIME -
CAMPFIRE_RUN_OUT_INDICATOR_TIME
public static final net.minecraftforge.common.ForgeConfigSpec.IntValue CAMPFIRE_RUN_OUT_INDICATOR_TIME -
CAMPFIRE_RAIN_UNLIT_TIME
public static final net.minecraftforge.common.ForgeConfigSpec.IntValue CAMPFIRE_RAIN_UNLIT_TIME -
CAMPFIRE_RAIN_PARTICLE_FACTOR
public static final net.minecraftforge.common.ForgeConfigSpec.IntValue CAMPFIRE_RAIN_PARTICLE_FACTOR -
CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME -
CAMPFIRE_ADDING_BURNABLES
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue CAMPFIRE_ADDING_BURNABLES -
CAMPFIRE_MAX_LIT_TIME_EXTENSION
public static final net.minecraftforge.common.ForgeConfigSpec.IntValue CAMPFIRE_MAX_LIT_TIME_EXTENSION -
CAMPFIRE_AFFECTED_BY_SLEEP_TIME
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue CAMPFIRE_AFFECTED_BY_SLEEP_TIME -
GENERATED_CAMPFIRE_IS_LIT_INFINITELY
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue GENERATED_CAMPFIRE_IS_LIT_INFINITELY -
INFINITE_CAMPFIRE_IGNORES_RAIN
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue INFINITE_CAMPFIRE_IGNORES_RAIN -
SOUL_CAMPFIRE_LIT_TIME
public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SOUL_CAMPFIRE_LIT_TIME -
SOUL_CAMPFIRE_RUN_OUT_INDICATOR_TIME
public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SOUL_CAMPFIRE_RUN_OUT_INDICATOR_TIME -
SOUL_CAMPFIRE_RAIN_UNLIT_TIME
public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SOUL_CAMPFIRE_RAIN_UNLIT_TIME -
SOUL_CAMPFIRE_RAIN_PARTICLE_FACTOR
public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SOUL_CAMPFIRE_RAIN_PARTICLE_FACTOR -
SOUL_CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue SOUL_CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME -
SOUL_CAMPFIRE_ADDING_BURNABLES
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue SOUL_CAMPFIRE_ADDING_BURNABLES -
SOUL_CAMPFIRE_MAX_LIT_TIME_EXTENSION
public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SOUL_CAMPFIRE_MAX_LIT_TIME_EXTENSION -
SOUL_CAMPFIRE_AFFECTED_BY_SLEEP_TIME
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue SOUL_CAMPFIRE_AFFECTED_BY_SLEEP_TIME -
GENERATED_SOUL_CAMPFIRE_IS_LIT_INFINITELY
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue GENERATED_SOUL_CAMPFIRE_IS_LIT_INFINITELY -
INFINITE_SOUL_CAMPFIRE_IGNORES_RAIN
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue INFINITE_SOUL_CAMPFIRE_IGNORES_RAIN
-
-
Constructor Details
-
ForgeConfigHelper
public ForgeConfigHelper()
-
-
Method Details
-
init
public void init()Description copied from interface:IConfigHelperInitialization method for the Service implementations.- Specified by:
initin interfaceIConfigHelper
-
getLitTime
public int getLitTime(boolean isSoulCampfire) Description copied from interface:IConfigHelperGets the configured lit time value.- Specified by:
getLitTimein interfaceIConfigHelper- Parameters:
isSoulCampfire- parameter which indicates if the campfire or soul campfire value should be returned- Returns:
- configured lit time value
-
getRunOutIndicatorTime
public int getRunOutIndicatorTime(boolean isSoulCampfire) Description copied from interface:IConfigHelperGets the configured "runs out" indicator time value.- Specified by:
getRunOutIndicatorTimein interfaceIConfigHelper- Parameters:
isSoulCampfire- parameter which indicates if the campfire or soul campfire value should be returned- Returns:
- configured "runs out" indicator time value
-
getRainUnlitTime
public int getRainUnlitTime(boolean isSoulCampfire) Description copied from interface:IConfigHelperGets the configured rain unlit time value.- Specified by:
getRainUnlitTimein interfaceIConfigHelper- Parameters:
isSoulCampfire- parameter which indicates if the campfire or soul campfire value should be returned- Returns:
- configured rain unlit time value
-
getRainParticleFactor
public int getRainParticleFactor(boolean isSoulCampfire) Description copied from interface:IConfigHelperGets the configured rain particle factor value.- Specified by:
getRainParticleFactorin interfaceIConfigHelper- Parameters:
isSoulCampfire- parameter which indicates if the campfire or soul campfire value should be returned- Returns:
- configured rain particle factor value
-
isBreakingWhenUnlitByTime
public boolean isBreakingWhenUnlitByTime(boolean isSoulCampfire) Description copied from interface:IConfigHelperGets the configured "breaks when unlit by time" value.- Specified by:
isBreakingWhenUnlitByTimein interfaceIConfigHelper- Parameters:
isSoulCampfire- parameter which indicates if the campfire or soul campfire value should be returned- Returns:
- configured "breaks when unlit by time" value
-
canAddBurnables
public boolean canAddBurnables(boolean isSoulCampfire) Description copied from interface:IConfigHelperGets the configured "adding burnables" value.- Specified by:
canAddBurnablesin interfaceIConfigHelper- Parameters:
isSoulCampfire- parameter which indicates if the campfire or soul campfire value should be returned- Returns:
- configured "adding burnables" value
-
getMaxLitTimeExtension
public int getMaxLitTimeExtension(boolean isSoulCampfire) Description copied from interface:IConfigHelperGets the configured max lit time extension value.- Specified by:
getMaxLitTimeExtensionin interfaceIConfigHelper- Parameters:
isSoulCampfire- parameter which indicates if the campfire or soul campfire value should be returned- Returns:
- configured lit time value
-
isAffectedBySleepTime
public boolean isAffectedBySleepTime(boolean isSoulCampfire) Description copied from interface:IConfigHelperGets the configured "affected by sleep time" value.- Specified by:
isAffectedBySleepTimein interfaceIConfigHelper- Parameters:
isSoulCampfire- parameter which indicates if the campfire or soul campfire value should be returned- Returns:
- configured "affected by sleep time" value
-
isGeneratedCampfireLitInfinitely
public boolean isGeneratedCampfireLitInfinitely(boolean isSoulCampfire) Description copied from interface:IConfigHelperGets the configured "generated campfire is lit infinitely" value.- Specified by:
isGeneratedCampfireLitInfinitelyin interfaceIConfigHelper- Parameters:
isSoulCampfire- parameter which indicates if the campfire or soul campfire value should be returned- Returns:
- configured "generated campfire is lit infinitely" value
-
isInfiniteCampfireIgnoringRain
public boolean isInfiniteCampfireIgnoringRain(boolean isSoulCampfire) Description copied from interface:IConfigHelperGets the configured "infinite campfire ignores rain" value.- Specified by:
isInfiniteCampfireIgnoringRainin interfaceIConfigHelper- Parameters:
isSoulCampfire- parameter which indicates if the campfire or soul campfire value should be returned- Returns:
- configured "infinite campfire ignores rain" value
-
onLoad
public static void onLoad(net.minecraftforge.fml.event.config.ModConfigEvent.Loading configEvent) -
onChange
public static void onChange(net.minecraftforge.fml.event.config.ModConfigEvent.Reloading configEvent)
-