Class ForgeConfigHelper

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

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

    • CAMPFIRE_LIT_TIME

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue CAMPFIRE_LIT_TIME
    • CAMPFIRE_RUN_OUT_INDICATOR_TIME

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue CAMPFIRE_RUN_OUT_INDICATOR_TIME
    • CAMPFIRE_RAIN_UNLIT_TIME

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue CAMPFIRE_RAIN_UNLIT_TIME
    • CAMPFIRE_RAIN_PARTICLE_FACTOR

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue CAMPFIRE_RAIN_PARTICLE_FACTOR
    • CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME
    • CAMPFIRE_ADDING_BURNABLES

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue CAMPFIRE_ADDING_BURNABLES
    • CAMPFIRE_MAX_LIT_TIME_EXTENSION

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue CAMPFIRE_MAX_LIT_TIME_EXTENSION
    • CAMPFIRE_AFFECTED_BY_SLEEP_TIME

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue CAMPFIRE_AFFECTED_BY_SLEEP_TIME
    • GENERATED_CAMPFIRE_IS_LIT_INFINITELY

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue GENERATED_CAMPFIRE_IS_LIT_INFINITELY
    • INFINITE_CAMPFIRE_IGNORES_RAIN

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue INFINITE_CAMPFIRE_IGNORES_RAIN
    • SOUL_CAMPFIRE_LIT_TIME

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SOUL_CAMPFIRE_LIT_TIME
    • SOUL_CAMPFIRE_RUN_OUT_INDICATOR_TIME

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SOUL_CAMPFIRE_RUN_OUT_INDICATOR_TIME
    • SOUL_CAMPFIRE_RAIN_UNLIT_TIME

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SOUL_CAMPFIRE_RAIN_UNLIT_TIME
    • SOUL_CAMPFIRE_RAIN_PARTICLE_FACTOR

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SOUL_CAMPFIRE_RAIN_PARTICLE_FACTOR
    • SOUL_CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue SOUL_CAMPFIRE_BREAKS_WHEN_UNLIT_BY_TIME
    • SOUL_CAMPFIRE_ADDING_BURNABLES

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue SOUL_CAMPFIRE_ADDING_BURNABLES
    • SOUL_CAMPFIRE_MAX_LIT_TIME_EXTENSION

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SOUL_CAMPFIRE_MAX_LIT_TIME_EXTENSION
    • SOUL_CAMPFIRE_AFFECTED_BY_SLEEP_TIME

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue SOUL_CAMPFIRE_AFFECTED_BY_SLEEP_TIME
    • GENERATED_SOUL_CAMPFIRE_IS_LIT_INFINITELY

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue GENERATED_SOUL_CAMPFIRE_IS_LIT_INFINITELY
    • INFINITE_SOUL_CAMPFIRE_IGNORES_RAIN

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue INFINITE_SOUL_CAMPFIRE_IGNORES_RAIN
  • 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
    • getLitTime

      public int getLitTime(boolean isSoulCampfire)
      Description copied from interface: IConfigHelper
      Gets the configured lit time value.
      Specified by:
      getLitTime in interface IConfigHelper
      Parameters:
      isSoulCampfire - parameter which indicates if the campfire or soul campfire value should be returned
      Returns:
      configured lit time value
    • getRunOutIndicatorTime

      public int getRunOutIndicatorTime(boolean isSoulCampfire)
      Description copied from interface: IConfigHelper
      Gets the configured "runs out" indicator time value.
      Specified by:
      getRunOutIndicatorTime in interface IConfigHelper
      Parameters:
      isSoulCampfire - parameter which indicates if the campfire or soul campfire value should be returned
      Returns:
      configured "runs out" indicator time value
    • getRainUnlitTime

      public int getRainUnlitTime(boolean isSoulCampfire)
      Description copied from interface: IConfigHelper
      Gets the configured rain unlit time value.
      Specified by:
      getRainUnlitTime in interface IConfigHelper
      Parameters:
      isSoulCampfire - parameter which indicates if the campfire or soul campfire value should be returned
      Returns:
      configured rain unlit time value
    • getRainParticleFactor

      public int getRainParticleFactor(boolean isSoulCampfire)
      Description copied from interface: IConfigHelper
      Gets the configured rain particle factor value.
      Specified by:
      getRainParticleFactor in interface IConfigHelper
      Parameters:
      isSoulCampfire - parameter which indicates if the campfire or soul campfire value should be returned
      Returns:
      configured rain particle factor value
    • isBreakingWhenUnlitByTime

      public boolean isBreakingWhenUnlitByTime(boolean isSoulCampfire)
      Description copied from interface: IConfigHelper
      Gets the configured "breaks when unlit by time" value.
      Specified by:
      isBreakingWhenUnlitByTime in interface IConfigHelper
      Parameters:
      isSoulCampfire - parameter which indicates if the campfire or soul campfire value should be returned
      Returns:
      configured "breaks when unlit by time" value
    • canAddBurnables

      public boolean canAddBurnables(boolean isSoulCampfire)
      Description copied from interface: IConfigHelper
      Gets the configured "adding burnables" value.
      Specified by:
      canAddBurnables in interface IConfigHelper
      Parameters:
      isSoulCampfire - parameter which indicates if the campfire or soul campfire value should be returned
      Returns:
      configured "adding burnables" value
    • getMaxLitTimeExtension

      public int getMaxLitTimeExtension(boolean isSoulCampfire)
      Description copied from interface: IConfigHelper
      Gets the configured max lit time extension value.
      Specified by:
      getMaxLitTimeExtension in interface IConfigHelper
      Parameters:
      isSoulCampfire - parameter which indicates if the campfire or soul campfire value should be returned
      Returns:
      configured lit time value
    • isAffectedBySleepTime

      public boolean isAffectedBySleepTime(boolean isSoulCampfire)
      Description copied from interface: IConfigHelper
      Gets the configured "affected by sleep time" value.
      Specified by:
      isAffectedBySleepTime in interface IConfigHelper
      Parameters:
      isSoulCampfire - parameter which indicates if the campfire or soul campfire value should be returned
      Returns:
      configured "affected by sleep time" value
    • isGeneratedCampfireLitInfinitely

      public boolean isGeneratedCampfireLitInfinitely(boolean isSoulCampfire)
      Description copied from interface: IConfigHelper
      Gets the configured "generated campfire is lit infinitely" value.
      Specified by:
      isGeneratedCampfireLitInfinitely in interface IConfigHelper
      Parameters:
      isSoulCampfire - parameter which indicates if the campfire or soul campfire value should be returned
      Returns:
      configured "generated campfire is lit infinitely" value
    • isInfiniteCampfireIgnoringRain

      public boolean isInfiniteCampfireIgnoringRain(boolean isSoulCampfire)
      Description copied from interface: IConfigHelper
      Gets the configured "infinite campfire ignores rain" value.
      Specified by:
      isInfiniteCampfireIgnoringRain in interface IConfigHelper
      Parameters:
      isSoulCampfire - parameter which indicates if the campfire or soul campfire value should be returned
      Returns:
      configured "infinite campfire ignores rain" value
    • onLoad

      public static void onLoad(net.minecraftforge.fml.event.config.ModConfigEvent.Loading configEvent)
    • onChange

      public static void onChange(net.minecraftforge.fml.event.config.ModConfigEvent.Reloading configEvent)