> For the complete documentation index, see [llms.txt](https://buildsystem.eintosti.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://buildsystem.eintosti.de/other/developer-api.md).

# Developer API

## Adding BuildSystem to your project

### **Maven:**

```xml
<dependency>
  <groupId>de.eintosti</groupId>
  <artifactId>buildsystem-api</artifactId>
  <version>version</version>
</dependency>
```

### **Or alternatively, with Gradle:**

```kotlin
repositories {
  mavenCentral()
}
dependencies {
  compileOnly("de.eintosti:buildsystem-api:version")
}
```

## Obtaining an instance of the API

### **Using the singleton**

Note: this method will throw an `IllegalStateException` if the API is not loaded.

```java
BuildSystem api = BuildSystemProvider.get();
...
```

### **Using the Bukkit ServicesManager**

```java
RegisteredServiceProvider<BuildSystem> provider = Bukkit.getServicesManager().getRegistration(BuildSystem.class);
if (provider != null) {
    BuildSystem api = provider.getProvider();
    ...
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://buildsystem.eintosti.de/other/developer-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
