Class NeoForgePlatformHelper

java.lang.Object
com.mrbysco.classicfood.platform.NeoForgePlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class NeoForgePlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • NeoForgePlatformHelper

      public NeoForgePlatformHelper()
  • Method Details

    • isPoisonousHunger

      public boolean isPoisonousHunger()
      Description copied from interface: IPlatformHelper
      Check if poisonous hunger is enabled in the config.
      Specified by:
      isPoisonousHunger in interface IPlatformHelper
      Returns:
      True if poisonous hunger is enabled, false otherwise.
    • isInstantFood

      public boolean isInstantFood()
      Description copied from interface: IPlatformHelper
      Check if instant food is enabled in the config.
      Specified by:
      isInstantFood in interface IPlatformHelper
      Returns:
      True if instant food is enabled, false otherwise.
    • isUnstackable

      public boolean isUnstackable()
      Description copied from interface: IPlatformHelper
      Check if the food item is unstackable.
      Specified by:
      isUnstackable in interface IPlatformHelper
      Returns:
      True if the food item is unstackable, false otherwise.
    • getFoodToHealRatio

      public float getFoodToHealRatio()
      Description copied from interface: IPlatformHelper
      Get the ratio of food to heal defined in the config.
      Specified by:
      getFoodToHealRatio in interface IPlatformHelper
      Returns:
      The ratio of food to heal.