More Utility Classes

This commit is contained in:
2022-08-07 15:44:22 +02:00
parent ff8301f7e2
commit bee7261718
7 changed files with 65 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
package me.hypherionmc.craterlib.common;
import me.hypherionmc.craterlib.platform.services.IPlatformHelper;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.fml.loading.FMLLoader;
/**
* @author HypherionSA
* @date 07/08/2022
*/
public class ForgePlatformHelper implements IPlatformHelper {
@Override
public String getPlatformName() {
return "Forge";
}
@Override
public boolean isModLoaded(String modId) {
return ModList.get().isLoaded(modId);
}
@Override
public boolean isDevelopmentEnvironment() {
return !FMLLoader.isProduction();
}
}

View File

@@ -0,0 +1 @@
me.hypherionmc.craterlib.common.ForgePlatformHelper