Class ForgeConfigHelper
java.lang.Object
de.cech12.solarcooker.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.ConfigValue<String> static final net.minecraftforge.common.ForgeConfigSpec.BooleanValueFields inherited from interface IConfigHelper
COOK_TIME_FACTOR_DEFAULT, COOK_TIME_FACTOR_DESCRIPTION, COOK_TIME_FACTOR_MAX, COOK_TIME_FACTOR_MIN, MAX_REFLECTOR_TIME_FACTOR_DEFAULT, MAX_REFLECTOR_TIME_FACTOR_DESCRIPTION, MAX_REFLECTOR_TIME_FACTOR_MAX, MAX_REFLECTOR_TIME_FACTOR_MIN, RECIPE_BLOCKED_LIST_DEFAULT, RECIPE_BLOCKED_LIST_DESCRIPTION, VANILLA_RECIPE_TYPE_DEFAULT, VANILLA_RECIPE_TYPE_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 cook time factor option.doubleGets the configured value of the max reflector time factor option.Gets the configured value of the recipe blocked list option.net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.AbstractCookingRecipe> Gets the configured value of the vanilla recipe type 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 -
VANILLA_RECIPE_TYPE
public static final net.minecraftforge.common.ForgeConfigSpec.ConfigValue<String> VANILLA_RECIPE_TYPE -
COOK_TIME_FACTOR
public static final net.minecraftforge.common.ForgeConfigSpec.DoubleValue COOK_TIME_FACTOR -
MAX_REFLECTOR_TIME_FACTOR
public static final net.minecraftforge.common.ForgeConfigSpec.DoubleValue MAX_REFLECTOR_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
-
getRecipeType
public net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.AbstractCookingRecipe> getRecipeType()Description copied from interface:IConfigHelperGets the configured value of the vanilla recipe type option.- Specified by:
getRecipeTypein interfaceIConfigHelper- Returns:
- configured value of the vanilla recipe type 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
-
getMaxReflectorTimeFactor
public double getMaxReflectorTimeFactor()Description copied from interface:IConfigHelperGets the configured value of the max reflector time factor option.- Specified by:
getMaxReflectorTimeFactorin interfaceIConfigHelper- Returns:
- configured value of the max reflector 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
-