Interface VeilPlatform


@Internal public interface VeilPlatform
Manages common platform-specific features.
  • Method Details

    • getPlatformType

      VeilPlatform.PlatformType getPlatformType()
      Returns:
      The detected platform type
    • isModLoaded

      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.
    • isSodiumLoaded

      boolean isSodiumLoaded()
      Returns:
      Whether Sodium is present
    • isDevelopmentEnvironment

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