Class NeoForgePlatformHelper

java.lang.Object
org.tywrapstudios.ctd.platform.NeoForgePlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class NeoForgePlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • NeoForgePlatformHelper

      public NeoForgePlatformHelper()
  • Method Details

    • getPlatformName

      public String getPlatformName()
      Description copied from interface: IPlatformHelper
      Gets the name of the current platform
      Specified by:
      getPlatformName in interface IPlatformHelper
      Returns:
      The name of the current platform.
    • getModVersion

      public String getModVersion(String modId)
      Description copied from interface: IPlatformHelper
      Gets the version of a mod.
      Specified by:
      getModVersion in interface IPlatformHelper
      Returns:
      The version of a mod.
    • getGamePath

      public Path getGamePath()
      Description copied from interface: IPlatformHelper
      Gets the path to the world directory.
      Specified by:
      getGamePath in interface IPlatformHelper
      Returns:
      The path to the world directory.
    • isModLoaded

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

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

      public File getConfigDirectory()
      Description copied from interface: IPlatformHelper
      Gets the Config Directory in the form of a File.
      Specified by:
      getConfigDirectory in interface IPlatformHelper
      Returns:
      The Config Directory.