⁠
rednesto: Bump templates
- package ${MAIN_CLASS.packageName}.platform;
- import ${MAIN_CLASS.packageName}.platform.services.IPlatformHelper;
- import net.neoforged.fml.ModList;
- import net.neoforged.fml.loading.FMLLoader;
- public class NeoForgePlatformHelper implements IPlatformHelper {
- @Override
- public String getPlatformName() {
- return "NeoForge";
- }
- @Override
- public boolean isModLoaded(String modId) {
- return ModList.get().isLoaded(modId);
- }
- @Override
- public boolean isDevelopmentEnvironment() {
- return !FMLLoader.isProduction();
- }
- }