Class FabricPlatformHelper

java.lang.Object
com.mrbysco.spoiled.platform.FabricPlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class FabricPlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • isModLoaded

      public boolean isModLoaded(String modId)
      Description copied from interface: IPlatformHelper
      Returns true if the mod is loaded
      Specified by:
      isModLoaded in interface IPlatformHelper
      Returns:
      If the mod is loaded
    • showPercentage

      public boolean showPercentage()
      Description copied from interface: IPlatformHelper
      When enabled makes the food's tooltips show percentages
      Specified by:
      showPercentage in interface IPlatformHelper
      Returns:
      The configured showPercentage value
    • getContainerModifier

      public List<String> getContainerModifier()
      Description copied from interface: IPlatformHelper
      Gets the configured container modifiers
      Specified by:
      getContainerModifier in interface IPlatformHelper
      Returns:
      The configured containerModifier value
    • getSpoilRate

      public int getSpoilRate()
      Description copied from interface: IPlatformHelper
      Gets the configured spoil rate
      Specified by:
      getSpoilRate in interface IPlatformHelper
      Returns:
      The configured spoilRate value
    • initializeSpoiling

      public boolean initializeSpoiling()
      Description copied from interface: IPlatformHelper
      When enabled Spoiled initializes spoiling for all vanilla food
      Specified by:
      initializeSpoiling in interface IPlatformHelper
      Returns:
      The configured initializeSpoiling value
    • mergeSpoilingFood

      public boolean mergeSpoilingFood()
      Description copied from interface: IPlatformHelper
      Enables a special recipe to merge spoiling food together
      Specified by:
      mergeSpoilingFood in interface IPlatformHelper
      Returns:
      The configured mergeSpoilingFood value
    • spoilEverything

      public boolean spoilEverything()
      Description copied from interface: IPlatformHelper
      When enabled Spoiled makes every edible item spoil into the specified Spoil Item (This overwrites json spoiling completely)
      Specified by:
      spoilEverything in interface IPlatformHelper
      Returns:
      The configured spoilEverything value
    • getSpoilBlacklist

      public List<String> getSpoilBlacklist()
      Description copied from interface: IPlatformHelper
      Defines a list of items that are never allowed to spoil
      Specified by:
      getSpoilBlacklist in interface IPlatformHelper
      Returns:
      The configured spoilBlacklist value
    • getDefaultSpoilTime

      public int getDefaultSpoilTime()
      Description copied from interface: IPlatformHelper
      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)
      Specified by:
      getDefaultSpoilTime in interface IPlatformHelper
      Returns:
      The configured defaultSpoilTime value
    • getDefaultSpoilItem

      public String getDefaultSpoilItem()
      Description copied from interface: IPlatformHelper
      Defines the item the foods vanilla foods will turn into when spoiled (if empty it will clear the spoiling item)
      Specified by:
      getDefaultSpoilItem in interface IPlatformHelper
      Returns:
      The configured defaultSpoilItem value
    • getIgnoredComponentIdentifiers

      public List<? extends String> getIgnoredComponentIdentifiers()
      Description copied from interface: IPlatformHelper
      Any components with these identifiers will cause items not to spoil when they are present on the item
      Specified by:
      getIgnoredComponentIdentifiers in interface IPlatformHelper
      Returns:
      The configured ignoredComponents value
    • registerContainerManagers

      public void registerContainerManagers()
      Specified by:
      registerContainerManagers in interface IPlatformHelper