Interface IPlatformHelper


public interface IPlatformHelper
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the configured container modifiers
    Defines the item the foods vanilla foods will turn into when spoiled (if empty it will clear the spoiling item)
    int
    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)
    List<? extends String>
    Any components with these identifiers will cause items not to spoil when they are present on the item
    Defines a list of items that are never allowed to spoil
    int
    Gets the configured spoil rate
    boolean
    When enabled Spoiled initializes spoiling for all vanilla food
    boolean
    Returns true if the mod is loaded
    boolean
    Enables a special recipe to merge spoiling food together
    void
     
    boolean
    When enabled makes the food's tooltips show percentages
    boolean
    When enabled Spoiled makes every edible item spoil into the specified Spoil Item (This overwrites json spoiling completely)
  • Method Details

    • isModLoaded

      boolean isModLoaded(String modID)
      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

      List<String> 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

      List<String> 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
    • getIgnoredComponentIdentifiers

      List<? extends String> getIgnoredComponentIdentifiers()
      Any components with these identifiers will cause items not to spoil when they are present on the item
      Returns:
      The configured ignoredComponents value
    • registerContainerManagers

      void registerContainerManagers()