Skip to content

betterclient/Quixotic-Loader

Repository files navigation

Quixotic Wrapper

A java wrapper that enable usage of mixins.

Usage

Create a new class for your application.

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 getMixinConfigurations method's return.

2: Change the getMainClass method to return your application's main class.

3: Change the getSide method to return the Side.

4: Load any ClassTransformer's you want using loadApplicationManager.

5: Last of all change your app's version and name.

Adding the quixoticapp argument

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.

Create the java main to add your application 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!

About

wrapper made for fun!, supports application + mixins.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages