Interface IConfigHelper
- All Known Implementing Classes:
ForgeConfigHelper
public interface IConfigHelper
Common configuration helper service interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault value of the burn time factor optionstatic final StringConfig description of the burn time factor optionstatic final doubleMaximal value of the burn time factor optionstatic final doubleMinimal value of the burn time factor optionstatic final doubleDefault value of the cook time factor optionstatic final StringConfig description of the cook time factor optionstatic final doubleMaximal value of the cook time factor optionstatic final doubleMinimal value of the cook time factor optionstatic final StringDefault value of the recipe blocked list optionstatic final StringConfig description of the recipe blocked list optionstatic final booleanDefault value of the vanilla recipe enabled optionstatic final StringConfig description of the vanilla recipe enabled option -
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.default booleanisRecipeAllowed(net.minecraft.resources.Identifier id) Checks if the given ResourceLocation is allowed taking into account the recipe blocked list.
-
Field Details
-
VANILLA_RECIPES_ENABLED_DEFAULT
static final boolean VANILLA_RECIPES_ENABLED_DEFAULTDefault value of the vanilla recipe enabled option- See Also:
-
VANILLA_RECIPES_ENABLED_DESCRIPTION
Config description of the vanilla recipe enabled option- See Also:
-
COOK_TIME_FACTOR_DEFAULT
static final double COOK_TIME_FACTOR_DEFAULTDefault value of the cook time factor option- See Also:
-
COOK_TIME_FACTOR_DESCRIPTION
Config description of the cook time factor option- See Also:
-
COOK_TIME_FACTOR_MIN
static final double COOK_TIME_FACTOR_MINMinimal value of the cook time factor option- See Also:
-
COOK_TIME_FACTOR_MAX
static final double COOK_TIME_FACTOR_MAXMaximal value of the cook time factor option- See Also:
-
BURN_TIME_FACTOR_DEFAULT
static final double BURN_TIME_FACTOR_DEFAULTDefault value of the burn time factor option- See Also:
-
BURN_TIME_FACTOR_DESCRIPTION
Config description of the burn time factor option- See Also:
-
BURN_TIME_FACTOR_MIN
static final double BURN_TIME_FACTOR_MINMinimal value of the burn time factor option- See Also:
-
BURN_TIME_FACTOR_MAX
static final double BURN_TIME_FACTOR_MAXMaximal value of the burn time factor option- See Also:
-
RECIPE_BLOCKED_LIST_DEFAULT
Default value of the recipe blocked list option- See Also:
-
RECIPE_BLOCKED_LIST_DESCRIPTION
Config description of the recipe blocked list option- See Also:
-
-
Method Details
-
init
void init()Initialization method for the Service implementations. -
areVanillaRecipesEnabled
boolean areVanillaRecipesEnabled()Gets the configured value of the vanilla recipe enabled option.- Returns:
- configured value of the vanilla recipe enabled option
-
getCookTimeFactor
double getCookTimeFactor()Gets the configured value of the cook time factor option.- Returns:
- configured value of the cook time factor option
-
getBurnTimeFactor
double getBurnTimeFactor()Gets the configured value of the burn time factor option.- Returns:
- configured value of the burn time factor option
-
getRecipeBlockedList
String getRecipeBlockedList()Gets the configured value of the recipe blocked list option.- Returns:
- configured value of the recipe blocked list option
-
isRecipeAllowed
default boolean isRecipeAllowed(net.minecraft.resources.Identifier id) Checks if the given ResourceLocation is allowed taking into account the recipe blocked list.- Parameters:
id- ResourceLocation of recipe- Returns:
- true, if recipe is allowed, else false
-