Package de.cech12.solarcooker.platform
Class FabricConfigHelper
java.lang.Object
de.cech12.solarcooker.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 TypeFieldDescriptionintintbooleanFields inherited from interface de.cech12.solarcooker.platform.services.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.shedaniel.autoconfig.ConfigData
validatePostLoadMethods inherited from interface de.cech12.solarcooker.platform.services.IConfigHelper
isRecipeAllowed
-
Field Details
-
VANILLA_RECIPES_ENABLED
public boolean VANILLA_RECIPES_ENABLED -
VANILLA_RECIPE_TYPE
-
COOK_TIME_FACTOR
public int COOK_TIME_FACTOR -
MAX_REFLECTOR_TIME_FACTOR
public int MAX_REFLECTOR_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
-
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
-