Class NeoForgePlatformHelper

java.lang.Object
software.bluelib.platform.NeoForgePlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class NeoForgePlatformHelper extends Object implements IPlatformHelper
A NeoForgePlatformHelper class that provides platform-specific implementation for NeoForge.

This class implements IPlatformHelper to provide NeoForge-specific functionality such as retrieving the platform name, checking if a mod is loaded, and determining if the game is running in a development environment.

Key Methods:

Since:
1.0.0
  • Constructor Details

    • NeoForgePlatformHelper

      public NeoForgePlatformHelper()
  • Method Details

    • getPlatformName

      public String getPlatformName()
      A public String method that returns the name of the current platform, which is "NeoForge" for this implementation.
      Specified by:
      getPlatformName in interface IPlatformHelper
      Returns:
      String - The platform name, "NeoForge".
      Since:
      1.0.0
    • isModLoaded

      public boolean isModLoaded(String pModId)
      A public Boolean method that checks if a mod with the given ID is loaded using NeoForge's ModList.
      Specified by:
      isModLoaded in interface IPlatformHelper
      Parameters:
      pModId - String - The mod ID to check if it's loaded.
      Returns:
      true if the mod is loaded, false otherwise.
      Since:
      1.0.0
    • isDevelopmentEnvironment

      public boolean isDevelopmentEnvironment()
      A public Boolean method that checks if the game is currently running in a development environment using NeoForge's FMLLoader.
      Specified by:
      isDevelopmentEnvironment in interface IPlatformHelper
      Returns:
      true if running in a development environment, false if it isn't.
      Since:
      1.0.0