build 'successfully' loaded LaunchPlugin via ModLauncher
This commit is contained in:
parent
59e579d9e1
commit
7b201195a1
2 changed files with 33 additions and 0 deletions
32
src/main/java/bscv/asm/BoSCoVicinoLoader.java
Normal file
32
src/main/java/bscv/asm/BoSCoVicinoLoader.java
Normal 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);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
bscv.asm.BoSCoVicinoLoader
|
Loading…
Reference in a new issue