⁠
rednesto: Bump templates
- package ${MAIN_CLASS.packageName}.platform;
- import ${MAIN_CLASS.packageName}.platform.services.IPlatformHelper;
- import net.minecraftforge.fml.ModList;
- import net.minecraftforge.fml.loading.FMLLoader;
- 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();
- }
- }