Interface IConfigHelper
- All Known Implementing Classes:
NeoForgeConfigHelper
public interface IConfigHelper
Common configuration helper service interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 doubleDefault value of the max reflector time factor optionstatic final StringConfig description of the max reflector time factor optionstatic final doubleMaximal value of the max reflector time factor optionstatic final doubleMinimal value of the max reflector time factor optionstatic final StringDefault value of the recipe blocked list optionstatic final StringConfig description of the recipe blocked list optionstatic final net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.AbstractCookingRecipe> Default value of the vanilla recipe type optionstatic final StringConfig description of the vanilla recipe type 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 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.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:
-
VANILLA_RECIPE_TYPE_DEFAULT
static final net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.AbstractCookingRecipe> VANILLA_RECIPE_TYPE_DEFAULTDefault value of the vanilla recipe type option -
VANILLA_RECIPE_TYPE_DESCRIPTION
Config description of the vanilla recipe type 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:
-
MAX_REFLECTOR_TIME_FACTOR_DEFAULT
static final double MAX_REFLECTOR_TIME_FACTOR_DEFAULTDefault value of the max reflector time factor option- See Also:
-
MAX_REFLECTOR_TIME_FACTOR_DESCRIPTION
Config description of the max reflector time factor option- See Also:
-
MAX_REFLECTOR_TIME_FACTOR_MIN
static final double MAX_REFLECTOR_TIME_FACTOR_MINMinimal value of the max reflector time factor option- See Also:
-
MAX_REFLECTOR_TIME_FACTOR_MAX
static final double MAX_REFLECTOR_TIME_FACTOR_MAXMaximal value of the max reflector 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
-
getRecipeType
net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.AbstractCookingRecipe> getRecipeType()Gets the configured value of the vanilla recipe type option.- Returns:
- configured value of the vanilla recipe type option
-
getCookTimeFactor
double getCookTimeFactor()Gets the configured value of the cook time factor option.- Returns:
- configured value of the cook time factor option
-
getMaxReflectorTimeFactor
double getMaxReflectorTimeFactor()Gets the configured value of the max reflector time factor option.- Returns:
- configured value of the max reflector 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
-