Package ca.stellardrift.colonel.impl
Class PreLaunchHacks
- java.lang.Object
-
- ca.stellardrift.colonel.impl.PreLaunchHacks
-
public class PreLaunchHacks extends Object
Via i509VCB, a trick to get Brig onto the Knot classpath in order to properly mix in.YOU SHOULD ONLY USE THIS CLASS DURING "preLaunch" and ONLY TARGET A CLASS WHICH IS NOT ANY CLASS YOU MIXIN TO. This will likely not work on Gson because FabricLoader has some special logic related to Gson.
Original on GitHub at i509VCB/Fabric-Junkkyard
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidhackilyLoadForMixin(String pathOfAClass)Hackily load the package which a mixin may exist within.
-
-
-
Method Detail
-
hackilyLoadForMixin
public static void hackilyLoadForMixin(String pathOfAClass) throws ClassNotFoundException, InvocationTargetException, IllegalAccessException
Hackily load the package which a mixin may exist within. YOU SHOULD NOT TARGET A CLASS WHICH YOU MIXIN TO.- Parameters:
pathOfAClass- The path of any class within the package.- Throws:
ClassNotFoundException- if an unknown class name is usedInvocationTargetException- if an error occurs while injectingIllegalAccessException- if an error occurs while injecting
-
-