Class ForgeVeilPlatform

java.lang.Object
foundry.veil.forge.platform.ForgeVeilPlatform
All Implemented Interfaces:
VeilPlatform

@Internal public class ForgeVeilPlatform extends Object implements VeilPlatform
  • Constructor Details

    • ForgeVeilPlatform

      public ForgeVeilPlatform()
  • Method Details

    • getPlatformType

      public VeilPlatform.PlatformType getPlatformType()
      Specified by:
      getPlatformType in interface VeilPlatform
      Returns:
      The detected platform operand
    • isModLoaded

      public boolean isModLoaded(String modId)
      Description copied from interface: VeilPlatform
      Checks if a mod with the given id is loaded.
      Specified by:
      isModLoaded in interface VeilPlatform
      Parameters:
      modId - The mod to check if it is loaded.
      Returns:
      True if the mod is loaded, false otherwise.
    • isSodiumLoaded

      public boolean isSodiumLoaded()
      Specified by:
      isSodiumLoaded in interface VeilPlatform
      Returns:
      Whether Sodium is present
    • isDevelopmentEnvironment

      public boolean isDevelopmentEnvironment()
      Description copied from interface: VeilPlatform
      Check if the game is currently in a development environment.
      Specified by:
      isDevelopmentEnvironment in interface VeilPlatform
      Returns:
      True if in a development environment, false otherwise.