Class FabricConfigHelper
java.lang.Object
de.cech12.brickfurnace.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 classes/interfaces inherited from interface me.shedaniel.autoconfig.ConfigData
me.shedaniel.autoconfig.ConfigData.ValidationException -
Field Summary
FieldsModifier and TypeFieldDescriptionlonglongbooleanFields inherited from interface IConfigHelper
BURN_TIME_FACTOR_DEFAULT, BURN_TIME_FACTOR_DESCRIPTION, BURN_TIME_FACTOR_MAX, BURN_TIME_FACTOR_MIN, COOK_TIME_FACTOR_DEFAULT, COOK_TIME_FACTOR_DESCRIPTION, COOK_TIME_FACTOR_MAX, COOK_TIME_FACTOR_MIN, RECIPE_BLOCKED_LIST_DEFAULT, RECIPE_BLOCKED_LIST_DESCRIPTION, VANILLA_RECIPES_ENABLED_DEFAULT, VANILLA_RECIPES_ENABLED_DESCRIPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the configured value of the vanilla recipe enabled option.doubleGets the configured value of the burn time factor option.doubleGets the configured value of the cook time factor option.Gets the configured value of the recipe blocked list option.voidinit()Initialization method for the Service implementations.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.shedaniel.autoconfig.ConfigData
validatePostLoadMethods inherited from interface IConfigHelper
isRecipeAllowed
-
Field Details
-
VANILLA_RECIPES_ENABLED
public boolean VANILLA_RECIPES_ENABLED -
COOK_TIME_FACTOR
public long COOK_TIME_FACTOR -
BURN_TIME_FACTOR
public long BURN_TIME_FACTOR -
RECIPE_BLOCKED_LIST
-
-
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
-
areVanillaRecipesEnabled
public boolean areVanillaRecipesEnabled()Description copied from interface:IConfigHelperGets the configured value of the vanilla recipe enabled option.- Specified by:
areVanillaRecipesEnabledin interfaceIConfigHelper- Returns:
- configured value of the vanilla recipe enabled option
-
getCookTimeFactor
public double getCookTimeFactor()Description copied from interface:IConfigHelperGets the configured value of the cook time factor option.- Specified by:
getCookTimeFactorin interfaceIConfigHelper- Returns:
- configured value of the cook time factor option
-
getBurnTimeFactor
public double getBurnTimeFactor()Description copied from interface:IConfigHelperGets the configured value of the burn time factor option.- Specified by:
getBurnTimeFactorin interfaceIConfigHelper- Returns:
- configured value of the burn time factor option
-
getRecipeBlockedList
Description copied from interface:IConfigHelperGets the configured value of the recipe blocked list option.- Specified by:
getRecipeBlockedListin interfaceIConfigHelper- Returns:
- configured value of the recipe blocked list option
-