EnderDashEnderDash Docs

API

Add the EnderDash Java API to your plugin and browse the current Javadocs.

Status

The EnderDash Java API is still WIP. Expect the surface area to expand and some details to change while the first public integrations settle.

Repository

  • Maven repository: https://repo.enderdash.com
  • Javadocs: https://jd.enderdash.com

Replace VERSION in the examples below with the released EnderDash API version you want to target.

Maven

<repositories>
  <repository>
    <id>enderdash</id>
    <url>https://repo.enderdash.com</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>com.enderdash</groupId>
    <artifactId>enderdash-api</artifactId>
    <version>VERSION</version>
  </dependency>
</dependencies>

Gradle Groovy DSL

repositories {
    maven {
        url = uri('https://repo.enderdash.com')
    }
}

dependencies {
    implementation 'com.enderdash:enderdash-api:VERSION'
}

Gradle Kotlin DSL

repositories {
  maven("https://repo.enderdash.com")
}

dependencies {
  implementation("com.enderdash:enderdash-api:VERSION")
}

Basic Template

This is intentionally minimal for now. Start by wiring the dependency, keeping a reference to the API type, and using the Javadocs as the source of truth while the public API is still taking shape.

import com.enderdash.agent.api.EnderDashApi;

public final class EnderDashIntegration {
  private final EnderDashApi api;

  public EnderDashIntegration(EnderDashApi api) {
    this.api = api;
  }

  public EnderDashApi api() {
    return api;
  }
}

More

On this page