Class FabricPlatformHelper

java.lang.Object
com.glektarssza.expandedgamerules.platform.FabricPlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class FabricPlatformHelper extends Object implements IPlatformHelper
The Fabric-specific platform helper.
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • getPlatformName

      @Nonnull public String getPlatformName()
      Get the name of the platform.
      Specified by:
      getPlatformName in interface IPlatformHelper
      Returns:
      The name of the platform.
    • isModLoaded

      public boolean isModLoaded(@Nonnull String modId)
      Check whether the named mod is loaded.
      Specified by:
      isModLoaded in interface IPlatformHelper
      Parameters:
      modId - The ID of the mod to check.
      Returns:
      Whether the named mod is loaded.
    • isDevelopmentEnvironment

      public boolean isDevelopmentEnvironment()
      Check whether the current environment is a development environment.
      Specified by:
      isDevelopmentEnvironment in interface IPlatformHelper
      Returns:
      Whether the current environment is a development environment.