Class FabricConfigHelper

java.lang.Object
de.cech12.unlitcampfire.platform.FabricConfigHelper
All Implemented Interfaces:
IConfigHelper, me.shedaniel.autoconfig.ConfigData

public class FabricConfigHelper extends Object implements me.shedaniel.autoconfig.ConfigData, IConfigHelper
The config service implementation for Fabric.
  • Field Details

  • Constructor Details

    • FabricConfigHelper

      public FabricConfigHelper()
  • 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