Interface IPlatformHelper

All Known Implementing Classes:
FabricPlatformHelper

public interface IPlatformHelper
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Get the ratio of food to heal defined in the config.
    boolean
    Check if instant food is enabled in the config.
    boolean
    Check if poisonous hunger is enabled in the config.
    boolean
    Check if the food item is unstackable.
  • Method Details

    • isPoisonousHunger

      boolean isPoisonousHunger()
      Check if poisonous hunger is enabled in the config.
      Returns:
      True if poisonous hunger is enabled, false otherwise.
    • isInstantFood

      boolean isInstantFood()
      Check if instant food is enabled in the config.
      Returns:
      True if instant food is enabled, false otherwise.
    • isUnstackable

      boolean isUnstackable()
      Check if the food item is unstackable.
      Returns:
      True if the food item is unstackable, false otherwise.
    • getFoodToHealRatio

      float getFoodToHealRatio()
      Get the ratio of food to heal defined in the config.
      Returns:
      The ratio of food to heal.