Package com.mrbysco.classicfood.platform
Class FabricPlatformHelper
java.lang.Object
com.mrbysco.classicfood.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatGet the ratio of food to heal defined in the config.booleanCheck if instant food is enabled in the config.booleanCheck if poisonous hunger is enabled in the config.booleanCheck if the food item is unstackable.
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
isPoisonousHunger
public boolean isPoisonousHunger()Description copied from interface:IPlatformHelperCheck if poisonous hunger is enabled in the config.- Specified by:
isPoisonousHungerin interfaceIPlatformHelper- Returns:
- True if poisonous hunger is enabled, false otherwise.
-
isInstantFood
public boolean isInstantFood()Description copied from interface:IPlatformHelperCheck if instant food is enabled in the config.- Specified by:
isInstantFoodin interfaceIPlatformHelper- Returns:
- True if instant food is enabled, false otherwise.
-
isUnstackable
public boolean isUnstackable()Description copied from interface:IPlatformHelperCheck if the food item is unstackable.- Specified by:
isUnstackablein interfaceIPlatformHelper- Returns:
- True if the food item is unstackable, false otherwise.
-
getFoodToHealRatio
public float getFoodToHealRatio()Description copied from interface:IPlatformHelperGet the ratio of food to heal defined in the config.- Specified by:
getFoodToHealRatioin interfaceIPlatformHelper- Returns:
- The ratio of food to heal.
-