Setup

To start setting up your addon, add an optional dependency on Limelight:

limelight_version=...
repositories {
    maven { url 'https://maven.wispforest.io/releases/' }
}

dependencies {
    modCompileOnly "io.wispforest:limelight:${project.limelight_version}"
    modLocalRuntime "io.wispforest:limelight:${project.limelight_version}"
}

Now that you have Limelight's code in your development environment, you need to define a Limelight entrypoint:

{
    // ...

    "entrypoints": {
        "limelight": [
            "com.example.exampleextension.ExampleLimelightCompat"
        ]
    },

    // ...
}
package com.example.exampleextension;

import io.wispforest.limelight.api.LimelightEntrypoint;
import io.wispforest.limelight.api.extension.LimelightExtension;

import java.util.function.Consumer;

public class ExampleLimelightCompat implements LimelightEntrypoint {
    @Override
    public void registerExtensions(Consumer<LimelightExtension> extensionRegistry) {
        // Register extensions here!
    }
}

Continue by adding an extension.


Last update: 2024-09-04