Class Platform

java.lang.Object
com.github.voidleech.oblivion.util.Platform

public class Platform extends Object
  • Constructor Details

    • Platform

      public Platform()
  • Method Details

    • getPlatformName

      public static String getPlatformName()
      Gets the name of the current platform
      Returns:
      The name of the current platform.
    • isModLoaded

      public static boolean isModLoaded(String modId)
      Checks if a mod with the given id is loaded.
      Parameters:
      modId - The mod to check if it is loaded.
      Returns:
      True if the mod is loaded, false otherwise.
    • isModEarlyLoaded

      public static boolean isModEarlyLoaded(String modId)
      Checks if a mod with the given id is loaded, when we need to check early Such as in mixin config plugin. (Not relevant for Fabric)
      Parameters:
      modId - The mod to check if it is loaded.
      Returns:
      True if the mod is loaded, false otherwise.
    • getResourcePath

      public static Path getResourcePath(String modId, String resource)
    • isDevelopmentEnvironment

      public static boolean isDevelopmentEnvironment()
      Check if the game is currently in a development environment.
      Returns:
      True if in a development environment, false otherwise.
    • getEnvironmentName

      public static String getEnvironmentName()
      Gets the name of the environment type as a string.
      Returns:
      The name of the environment type.
    • isPhysicalClient

      public static boolean isPhysicalClient()
      Checks if we're on the physical client.
      Returns:
      True if on the physical client, false otherwise