Interface IConfigHelper

All Known Implementing Classes:
ForgeConfigHelper

public interface IConfigHelper
Common configuration helper service interface.
  • Field Details

    • VANILLA_RECIPES_ENABLED_DEFAULT

      static final boolean VANILLA_RECIPES_ENABLED_DEFAULT
      Default value of the vanilla recipe enabled option
      See Also:
    • VANILLA_RECIPES_ENABLED_DESCRIPTION

      static final String VANILLA_RECIPES_ENABLED_DESCRIPTION
      Config description of the vanilla recipe enabled option
      See Also:
    • COOK_TIME_FACTOR_DEFAULT

      static final double COOK_TIME_FACTOR_DEFAULT
      Default value of the cook time factor option
      See Also:
    • COOK_TIME_FACTOR_DESCRIPTION

      static final String COOK_TIME_FACTOR_DESCRIPTION
      Config description of the cook time factor option
      See Also:
    • COOK_TIME_FACTOR_MIN

      static final double COOK_TIME_FACTOR_MIN
      Minimal value of the cook time factor option
      See Also:
    • COOK_TIME_FACTOR_MAX

      static final double COOK_TIME_FACTOR_MAX
      Maximal value of the cook time factor option
      See Also:
    • BURN_TIME_FACTOR_DEFAULT

      static final double BURN_TIME_FACTOR_DEFAULT
      Default value of the burn time factor option
      See Also:
    • BURN_TIME_FACTOR_DESCRIPTION

      static final String BURN_TIME_FACTOR_DESCRIPTION
      Config description of the burn time factor option
      See Also:
    • BURN_TIME_FACTOR_MIN

      static final double BURN_TIME_FACTOR_MIN
      Minimal value of the burn time factor option
      See Also:
    • BURN_TIME_FACTOR_MAX

      static final double BURN_TIME_FACTOR_MAX
      Maximal value of the burn time factor option
      See Also:
    • RECIPE_BLOCKED_LIST_DEFAULT

      static final String RECIPE_BLOCKED_LIST_DEFAULT
      Default value of the recipe blocked list option
      See Also:
    • RECIPE_BLOCKED_LIST_DESCRIPTION

      static final String 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