Package de.cech12.unlitcampfire.platform
Class FabricConfigHelper
java.lang.Object
de.cech12.unlitcampfire.platform.FabricConfigHelper
- All Implemented Interfaces:
IConfigHelper,me.shedaniel.autoconfig.ConfigData
public class FabricConfigHelper
extends Object
implements me.shedaniel.autoconfig.ConfigData, IConfigHelper
The config service implementation for Fabric.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface me.shedaniel.autoconfig.ConfigData
me.shedaniel.autoconfig.ConfigData.ValidationException -
Field Summary
FieldsModifier and TypeFieldDescriptionFields 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.shedaniel.autoconfig.ConfigData
validatePostLoad
-
Field Details
-
CAMPFIRE
-
SOUL_CAMPFIRE
-
-
Constructor Details
-
FabricConfigHelper
public FabricConfigHelper()
-
-
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
-