build 'successfully' loaded LaunchPlugin via ModLauncher

This commit is contained in:
dev@ftbsc 2023-02-03 11:01:19 +01:00
parent 59e579d9e1
commit 7b201195a1
2 changed files with 33 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -0,0 +1 @@
bscv.asm.BoSCoVicinoLoader