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:
    • VANILLA_RECIPE_TYPE_DEFAULT

      static final net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.AbstractCookingRecipe> VANILLA_RECIPE_TYPE_DEFAULT
      Default value of the vanilla recipe type option
    • VANILLA_RECIPE_TYPE_DESCRIPTION

      static final String VANILLA_RECIPE_TYPE_DESCRIPTION
      Config description of the vanilla recipe type 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:
    • MAX_REFLECTOR_TIME_FACTOR_DEFAULT

      static final double MAX_REFLECTOR_TIME_FACTOR_DEFAULT
      Default value of the max reflector time factor option
      See Also:
    • MAX_REFLECTOR_TIME_FACTOR_DESCRIPTION

      static final String 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_MIN
      Minimal value of the max reflector time factor option
      See Also:
    • MAX_REFLECTOR_TIME_FACTOR_MAX

      static final double MAX_REFLECTOR_TIME_FACTOR_MAX
      Maximal value of the max reflector 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
    • 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