Class ForgeConfigHelper
java.lang.Object
de.cech12.brickfurnace.platform.ForgeConfigHelper
- All Implemented Interfaces:
IConfigHelper
The config service implementation for Forge.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraftforge.common.ForgeConfigSpec.DoubleValuestatic final net.minecraftforge.common.ForgeConfigSpec.DoubleValuestatic final net.minecraftforge.common.ForgeConfigSpec.ConfigValue<String> static final net.minecraftforge.common.ForgeConfigSpec.BooleanValueFields 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 IConfigHelper
isRecipeAllowed
-
Field Details
-
VANILLA_RECIPES_ENABLED
public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue VANILLA_RECIPES_ENABLED -
COOK_TIME_FACTOR
public static final net.minecraftforge.common.ForgeConfigSpec.DoubleValue COOK_TIME_FACTOR -
BURN_TIME_FACTOR
public static final net.minecraftforge.common.ForgeConfigSpec.DoubleValue BURN_TIME_FACTOR -
RECIPE_BLOCKED_LIST
public static final net.minecraftforge.common.ForgeConfigSpec.ConfigValue<String> RECIPE_BLOCKED_LIST
-
-
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
-
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
-