Class FabricPlatformHelper

java.lang.Object
johnsmith.enchantingoverhauled.platform.FabricPlatformHelper
All Implemented Interfaces:
PlatformHelper

public class FabricPlatformHelper extends Object implements PlatformHelper
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • getPlatformName

      public String getPlatformName()
      Description copied from interface: PlatformHelper
      Gets the name of the current mod loader.
      Specified by:
      getPlatformName in interface PlatformHelper
      Returns:
      "Fabric" or "NeoForge".
    • isModLoaded

      public boolean isModLoaded(String modId)
      Description copied from interface: PlatformHelper
      Checks if another mod with the given ID is currently loaded.
      Specified by:
      isModLoaded in interface PlatformHelper
      Parameters:
      modId - The mod ID to check.
      Returns:
      True if the mod is loaded, false otherwise.
    • isDevelopmentEnvironment

      public boolean isDevelopmentEnvironment()
      Description copied from interface: PlatformHelper
      Checks if the game is running in a development environment (IDE).
      Specified by:
      isDevelopmentEnvironment in interface PlatformHelper
      Returns:
      True if in development, false if in production.