Class ForgeConfigHelper

java.lang.Object
de.cech12.solarcooker.platform.ForgeConfigHelper
All Implemented Interfaces:
IConfigHelper

public class ForgeConfigHelper extends Object implements IConfigHelper
The config service implementation for Forge.
  • Field Details

    • VANILLA_RECIPES_ENABLED

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue VANILLA_RECIPES_ENABLED
    • VANILLA_RECIPE_TYPE

      public static final net.minecraftforge.common.ForgeConfigSpec.ConfigValue<String> VANILLA_RECIPE_TYPE
    • COOK_TIME_FACTOR

      public static final net.minecraftforge.common.ForgeConfigSpec.DoubleValue COOK_TIME_FACTOR
    • MAX_REFLECTOR_TIME_FACTOR

      public static final net.minecraftforge.common.ForgeConfigSpec.DoubleValue MAX_REFLECTOR_TIME_FACTOR
    • RECIPE_BLOCKED_LIST

      public static final net.minecraftforge.common.ForgeConfigSpec.ConfigValue<String> RECIPE_BLOCKED_LIST
  • Constructor Details

    • ForgeConfigHelper

      public ForgeConfigHelper()
  • Method Details

    • init

      public void init()
      Description copied from interface: IConfigHelper
      Initialization method for the Service implementations.
      Specified by:
      init in interface IConfigHelper
    • areVanillaRecipesEnabled

      public boolean areVanillaRecipesEnabled()
      Description copied from interface: IConfigHelper
      Gets the configured value of the vanilla recipe enabled option.
      Specified by:
      areVanillaRecipesEnabled in interface IConfigHelper
      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: IConfigHelper
      Gets the configured value of the vanilla recipe type option.
      Specified by:
      getRecipeType in interface IConfigHelper
      Returns:
      configured value of the vanilla recipe type option
    • getCookTimeFactor

      public double getCookTimeFactor()
      Description copied from interface: IConfigHelper
      Gets the configured value of the cook time factor option.
      Specified by:
      getCookTimeFactor in interface IConfigHelper
      Returns:
      configured value of the cook time factor option
    • getMaxReflectorTimeFactor

      public double getMaxReflectorTimeFactor()
      Description copied from interface: IConfigHelper
      Gets the configured value of the max reflector time factor option.
      Specified by:
      getMaxReflectorTimeFactor in interface IConfigHelper
      Returns:
      configured value of the max reflector time factor option
    • getRecipeBlockedList

      public String getRecipeBlockedList()
      Description copied from interface: IConfigHelper
      Gets the configured value of the recipe blocked list option.
      Specified by:
      getRecipeBlockedList in interface IConfigHelper
      Returns:
      configured value of the recipe blocked list option