diff options
author | dev@ftbsc <dev@fantabos.co> | 2023-02-03 11:01:19 +0100 |
---|---|---|
committer | dev@ftbsc <dev@fantabos.co> | 2023-02-03 11:01:19 +0100 |
commit | 7b201195a1435962a8d01bdd0b8c10c10eb0c324 (patch) | |
tree | c0718df73203e4202fe8c82dd67fbe449486b0b5 | |
parent | 59e579d9e19f00e776c4b1b3dbbb6cb3d903e206 (diff) |
build 'successfully' loaded LaunchPlugin via ModLauncher
-rw-r--r-- | src/main/java/bscv/asm/BoSCoVicinoLoader.java | 32 | ||||
-rw-r--r-- | src/main/resources/META-INF/services/cpw.mods.modlauncher.serviceapi.ILaunchPluginService | 1 |
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 |