Package com.mrbysco.spoiled.platform
Class ForgePlatformHelper
java.lang.Object
com.mrbysco.spoiled.platform.ForgePlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
ForgePlatformHelper
public ForgePlatformHelper()
-
-
Method Details
-
isModLoaded
Description copied from interface:IPlatformHelperReturns true if the mod is loaded- Specified by:
isModLoadedin interfaceIPlatformHelper- Returns:
- If the mod is loaded
-
showPercentage
public boolean showPercentage()Description copied from interface:IPlatformHelperWhen enabled makes the food's tooltips show percentages- Specified by:
showPercentagein interfaceIPlatformHelper- Returns:
- The configured showPercentage value
-
getContainerModifier
Description copied from interface:IPlatformHelperGets the configured container modifiers- Specified by:
getContainerModifierin interfaceIPlatformHelper- Returns:
- The configured containerModifier value
-
getSpoilRate
public int getSpoilRate()Description copied from interface:IPlatformHelperGets the configured spoil rate- Specified by:
getSpoilRatein interfaceIPlatformHelper- Returns:
- The configured spoilRate value
-
initializeSpoiling
public boolean initializeSpoiling()Description copied from interface:IPlatformHelperWhen enabled Spoiled initializes spoiling for all vanilla food- Specified by:
initializeSpoilingin interfaceIPlatformHelper- Returns:
- The configured initializeSpoiling value
-
mergeSpoilingFood
public boolean mergeSpoilingFood()Description copied from interface:IPlatformHelperEnables a special recipe to merge spoiling food together- Specified by:
mergeSpoilingFoodin interfaceIPlatformHelper- Returns:
- The configured mergeSpoilingFood value
-
spoilEverything
public boolean spoilEverything()Description copied from interface:IPlatformHelperWhen enabled Spoiled makes every edible item spoil into the specified Spoil Item (This overwrites json spoiling completely)- Specified by:
spoilEverythingin interfaceIPlatformHelper- Returns:
- The configured spoilEverything value
-
getSpoilBlacklist
Description copied from interface:IPlatformHelperDefines a list of items that are never allowed to spoil- Specified by:
getSpoilBlacklistin interfaceIPlatformHelper- Returns:
- The configured spoilBlacklist value
-
getDefaultSpoilTime
public int getDefaultSpoilTime()Description copied from interface:IPlatformHelperDefines 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)- Specified by:
getDefaultSpoilTimein interfaceIPlatformHelper- Returns:
- The configured defaultSpoilTime value
-
getDefaultSpoilItem
Description copied from interface:IPlatformHelperDefines the item the foods vanilla foods will turn into when spoiled (if empty it will clear the spoiling item)- Specified by:
getDefaultSpoilItemin interfaceIPlatformHelper- Returns:
- The configured defaultSpoilItem value
-