Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.
1package net.lerariemann.infinity.compat;
2
3import net.lerariemann.infinity.util.platform.InfinityPlatform;
4
5public class ModCompat {
6
7 /**
8 * CC: Tweaked
9 * Optional config API, used for ingame configuration.
10 */
11 public static final boolean COMPUTERCRAFT = InfinityPlatform.INSTANCE.isModLoaded("computercraft");
12
13 /**
14 * Cloth Config
15 * Optional config API, used for ingame configuration.
16 */
17 public static final boolean CLOTH_CONFIG = InfinityPlatform.INSTANCE.isModLoaded("cloth-config") || InfinityPlatform.INSTANCE.isModLoaded("cloth_config");
18
19 /**
20 * Create/Create Fabric/Create Fly
21 * Used to allow Create trains to pass through Infinity Portals.
22 */
23 public static final boolean CREATE = InfinityPlatform.INSTANCE.isModLoaded("create");
24
25 /**
26 * DimLib
27 * Immersive Portals runtime dimension registration.
28 */
29 public static final boolean DIMLIB = InfinityPlatform.INSTANCE.isModLoaded("dimlib");
30
31 /**
32 * Extended Item View (RRV)
33 * 1.21.4 focused recipe viewer
34 */
35 public static final boolean RRV = InfinityPlatform.INSTANCE.isModLoaded("rrv");
36
37 /**
38 * FTB Essentials/Fabric Essentials
39 * Prevents our /warp command from merging with theirs.
40 */
41 public static final boolean ESSENTIALS = InfinityPlatform.INSTANCE.isModLoaded("ftbessentials") || InfinityPlatform.INSTANCE.isModLoaded("fabric-essentials");
42
43 /**
44 * Gravity Changer
45 * Optional compatibility for Mavity on 1.20.
46 */
47 public static final boolean GRAVITY_CHANGER = InfinityPlatform.INSTANCE.isModLoaded("gravity_changer_q");
48
49 /**
50 * Ponder
51 * Create's library for ingame viewing - prevents a crash from us assuming a simulated world is real.
52 */
53 public static final boolean PONDER = InfinityPlatform.INSTANCE.isModLoaded("create") || InfinityPlatform.INSTANCE.isModLoaded("ponder");
54}