aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/bscv/asm/BoSCoVicinoLoader.java32
-rw-r--r--src/main/resources/META-INF/services/cpw.mods.modlauncher.serviceapi.ILaunchPluginService1
2 files changed, 33 insertions, 0 deletions
diff --git a/src/main/java/bscv/asm/BoSCoVicinoLoader.java b/src/main/java/bscv/asm/BoSCoVicinoLoader.java
new file mode 100644
index 0000000..a41e883
--- /dev/null
+++ b/src/main/java/bscv/asm/BoSCoVicinoLoader.java
@@ -0,0 +1,32 @@
+package bscv.asm;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.EnumSet;
+
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+import org.objectweb.asm.Type;
+
+import cpw.mods.modlauncher.serviceapi.ILaunchPluginService;
+
+public class BoSCoVicinoLoader implements ILaunchPluginService {
+
+ public static Logger LOGGER = LogManager.getLogger("BSCV-ASM");
+
+ public BoSCoVicinoLoader() {
+ LOGGER.info("BoSCoVicinoLoader instantiation");
+ }
+
+ @Override
+ public String name() {
+ return "boscovicino_asm";
+ }
+
+ @Override
+ public EnumSet<ILaunchPluginService.Phase> handlesClass(Type classType, final boolean isEmpty) {
+ LOGGER.info(String.format("CLAZZ >>> %s", classType.getClassName()));
+ return EnumSet.noneOf(Phase.class);
+ }
+}
+
diff --git a/src/main/resources/META-INF/services/cpw.mods.modlauncher.serviceapi.ILaunchPluginService b/src/main/resources/META-INF/services/cpw.mods.modlauncher.serviceapi.ILaunchPluginService
new file mode 100644
index 0000000..da2569c
--- /dev/null
+++ b/src/main/resources/META-INF/services/cpw.mods.modlauncher.serviceapi.ILaunchPluginService
@@ -0,0 +1 @@
+bscv.asm.BoSCoVicinoLoader