Schnittstelle IPlatformHelper
- Alle bekannten Implementierungsklassen:
NeoForgePlatformHelper
public interface IPlatformHelper
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault StringGets the name of the environment type as a string.Gets the name of the current platformbooleanCheck if the game is currently in a development environment.booleanisModLoaded(String modId) Checks if a mod with the given id is loaded.
-
Methodendetails
-
getPlatformName
String getPlatformName()Gets the name of the current platform- Gibt zurück:
- The name of the current platform.
-
isModLoaded
Checks if a mod with the given id is loaded.- Parameter:
modId- The mod to check if it is loaded.- Gibt zurück:
- True if the mod is loaded, false otherwise.
-
isDevelopmentEnvironment
boolean isDevelopmentEnvironment()Check if the game is currently in a development environment.- Gibt zurück:
- True if in a development environment, false otherwise.
-
getEnvironmentName
Gets the name of the environment type as a string.- Gibt zurück:
- The name of the environment type.
-