superb-warfare/src/main/java/com/atsuishio/superbwarfare/compat/CompatHolder.java
2025-06-07 00:53:44 +08:00

26 lines
990 B
Java

package com.atsuishio.superbwarfare.compat;
import net.neoforged.fml.ModList;
public class CompatHolder {
public static final String DMV = "dreamaticvoyage";
public static final String VRC = "virtuarealcraft";
public static final String CLOTH_CONFIG = "cloth_config";
public static final String COLD_SWEAT = "cold_sweat";
// @ObjectHolder(registryName = "minecraft:mob_effect", value = DMV + ":bleeding")
// public static final MobEffect DMV_BLEEDING = null;
//
// @ObjectHolder(registryName = "minecraft:mob_effect", value = VRC + ":curse_flame")
// public static final MobEffect VRC_CURSE_FLAME = null;
//
// @ObjectHolder(registryName = "minecraft:entity_type", value = VRC + ":rain_shower_butterfly")
// public static final EntityType<? extends Projectile> VRC_RAIN_SHOWER_BUTTERFLY = null;
public static void hasMod(String modid, Runnable runnable) {
if (ModList.get().isLoaded(modid)) {
runnable.run();
}
}
}