Interface IPlatformHelper
public interface IPlatformHelper
-
Method Summary
Modifier and TypeMethodDescriptionGets the configured container modifiersDefines the item the foods vanilla foods will turn into when spoiled (if empty it will clear the spoiling item)intDefines the total amount of spoiling updates that is used by the default initialized spoiling when 'initializeSpoiling' is enabled (If the 'spoilRate' is 10 and the 'defaultSpoilTime' is set to 20 then the food will spoil after 20 * 10 seconds = 200 seconds)Defines a list of items that are never allowed to spoilintGets the configured spoil ratebooleanWhen enabled Spoiled initializes spoiling for all vanilla foodbooleanisModLoaded(String modID) Returns true if the mod is loadedbooleanEnables a special recipe to merge spoiling food togetherbooleanWhen enabled makes the food's tooltips show percentagesbooleanWhen enabled Spoiled makes every edible item spoil into the specified Spoil Item (This overwrites json spoiling completely)
-
Method Details
-
isModLoaded
Returns true if the mod is loaded- Returns:
- If the mod is loaded
-
showPercentage
boolean showPercentage()When enabled makes the food's tooltips show percentages- Returns:
- The configured showPercentage value
-
getContainerModifier
Gets the configured container modifiers- Returns:
- The configured containerModifier value
-
getSpoilRate
int getSpoilRate()Gets the configured spoil rate- Returns:
- The configured spoilRate value
-
initializeSpoiling
boolean initializeSpoiling()When enabled Spoiled initializes spoiling for all vanilla food- Returns:
- The configured initializeSpoiling value
-
mergeSpoilingFood
boolean mergeSpoilingFood()Enables a special recipe to merge spoiling food together- Returns:
- The configured mergeSpoilingFood value
-
spoilEverything
boolean spoilEverything()When enabled Spoiled makes every edible item spoil into the specified Spoil Item (This overwrites json spoiling completely)- Returns:
- The configured spoilEverything value
-
getSpoilBlacklist
Defines a list of items that are never allowed to spoil- Returns:
- The configured spoilBlacklist value
-
getDefaultSpoilTime
int getDefaultSpoilTime()Defines the total amount of spoiling updates that is used by the default initialized spoiling when 'initializeSpoiling' is enabled (If the 'spoilRate' is 10 and the 'defaultSpoilTime' is set to 20 then the food will spoil after 20 * 10 seconds = 200 seconds)- Returns:
- The configured defaultSpoilTime value
-
getDefaultSpoilItem
String getDefaultSpoilItem()Defines the item the foods vanilla foods will turn into when spoiled (if empty it will clear the spoiling item)- Returns:
- The configured defaultSpoilItem value
-