diff --git a/common/src/main/java/com/jozufozu/flywheel/platform/ClientPlatform.java b/common/src/main/java/com/jozufozu/flywheel/platform/ClientPlatform.java new file mode 100644 index 000000000..ee62f49ea --- /dev/null +++ b/common/src/main/java/com/jozufozu/flywheel/platform/ClientPlatform.java @@ -0,0 +1,22 @@ +package com.jozufozu.flywheel.platform; + +import java.lang.reflect.InvocationTargetException; + +public abstract class ClientPlatform { + private static final ClientPlatform INSTANCE; + + static { + try { + INSTANCE = + (ClientPlatform) Class.forName("com.jozufozu.flywheel.platform.ClientPlatformImpl").getConstructor() + .newInstance(); + } catch (ClassNotFoundException | InvocationTargetException | InstantiationException | IllegalAccessException | + NoSuchMethodException e) { + throw new RuntimeException(e); + } + } + + public static ClientPlatform getInstance() { + return INSTANCE; + } +} diff --git a/fabric/src/main/java/com/jozufozu/flywheel/platform/ClientPlatformImpl.java b/fabric/src/main/java/com/jozufozu/flywheel/platform/ClientPlatformImpl.java new file mode 100644 index 000000000..34abe1089 --- /dev/null +++ b/fabric/src/main/java/com/jozufozu/flywheel/platform/ClientPlatformImpl.java @@ -0,0 +1,4 @@ +package com.jozufozu.flywheel.platform; + +public class ClientPlatformImpl extends ClientPlatform { +} diff --git a/forge/src/main/java/com/jozufozu/flywheel/platform/ClientPlatformImpl.java b/forge/src/main/java/com/jozufozu/flywheel/platform/ClientPlatformImpl.java new file mode 100644 index 000000000..34abe1089 --- /dev/null +++ b/forge/src/main/java/com/jozufozu/flywheel/platform/ClientPlatformImpl.java @@ -0,0 +1,4 @@ +package com.jozufozu.flywheel.platform; + +public class ClientPlatformImpl extends ClientPlatform { +}