Package software.bluelib.platform
Class NeoForgePlatformHelper
java.lang.Object
software.bluelib.platform.NeoForgePlatformHelper
- All Implemented Interfaces:
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:
getPlatformName()- Returns the platform name for NeoForge.isModLoaded(String)- Checks if a mod is loaded using NeoForge'sModList.isDevelopmentEnvironment()- Checks if NeoForge is running in a development environment.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApublicStringmethod that returns the name of the current platform, which is "NeoForge" for this implementation.booleanApublicBooleanmethod that checks if the game is currently running in a development environment using NeoForge'sFMLLoader.booleanisModLoaded(String pModId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.bluelib.interfaces.platform.IPlatformHelper
getEnvironmentName
-
Constructor Details
-
NeoForgePlatformHelper
public NeoForgePlatformHelper()
-
-
Method Details
-
getPlatformName
ApublicStringmethod that returns the name of the current platform, which is "NeoForge" for this implementation.- Specified by:
getPlatformNamein interfaceIPlatformHelper- Returns:
String- The platform name, "NeoForge".- Since:
- 1.0.0
-
isModLoaded
- Specified by:
isModLoadedin interfaceIPlatformHelper- Parameters:
pModId-String- The mod ID to check if it's loaded.- Returns:
trueif the mod is loaded,falseotherwise.- Since:
- 1.0.0
-
isDevelopmentEnvironment
public boolean isDevelopmentEnvironment()ApublicBooleanmethod that checks if the game is currently running in a development environment using NeoForge'sFMLLoader.- Specified by:
isDevelopmentEnvironmentin interfaceIPlatformHelper- Returns:
trueif running in a development environment,falseif it isn't.- Since:
- 1.0.0
-