A java wrapper that enable usage of mixins.
public class ExampleApplication implements QuixoticApplication {
@Override
public String getApplicationName() {
return "AppName";
}
@Override
public String getApplicationVersion() {
return "appversion";
}
@Override
public String getMainClass() {
return "app.MainClass";
}
@Override
public void loadApplicationManager(QuixoticClassLoader classLoader) {
}
@Override
public List<String> getMixinConfigurations() {
return new ArrayList<>();
}
@Override
public Side getSide() {
return Side.CLIENT;
}
}What to do now?
1: You can add any mixin configurations using the
getMixinConfigurationsmethod's return.
2: Change the
getMainClassmethod to return your application's main class.
3: Change the
getSidemethod to return the Side.
4: Load any ClassTransformer's you want using
loadApplicationManager.
5: Last of all change your app's version and name.
This step is optional if you want to use the TestApplication or already have it in the arguments.
You can do the following using the Quixotic class as the main class.
import java.util.ArrayList;
import java.util.Arrays;
public class ExampleMain {
public static void main(String[] args) {
ArrayList<String> arguments = new ArrayList<>(Arrays.asList(args));
arguments.add("--quixoticapp");
arguments.add("com.example.ExampleApplication");
Quixotic.main(arguments.toArray(new String[0]));
}
}Launch the app using the main class you just made. All done!