> For the complete documentation index, see [llms.txt](https://pigaut.gitbook.io/orestack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pigaut.gitbook.io/orestack/developers/orestack-api-outdated.md).

# Orestack API (outdated)

No API is available for 4.0.0+ yet.

### Maven Dependency

[![javadoc](https://javadoc.io/badge2/io.github.pigaut.orestack.api/OrestackAPI/javadoc.svg)](https://javadoc.io/doc/io.github.pigaut.orestack.api/OrestackAPI)

```xml
<dependency>
    <groupId>io.github.pigaut.orestack.api</groupId>
    <artifactId>OrestackAPI</artifactId>
    <version>VERSION</version>
    <scope>provided</scope>
</dependency>
```

### OrestackAPI class

```java

OrestackAPI orestack = Orestack.getAPI();

orestack.isGenerator("generator_name");

Location location = ...;

orestack.isGenerator(location);

orestack.setGeneratorStage(location, 3);

orestack.regrow(location);

orestack.grow(location);

orestack.grow(location, 2);

orestack.harvest(location);

Player player = ...;

orestack.damage(location, player, 10);

```

### Events

<https://www.javadoc.io/doc/io.github.pigaut.orestack.api/OrestackAPI/latest/io/github/pigaut/orestack/api/event/package-summary.html><br>
