Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 1.03 KB

README.md

File metadata and controls

40 lines (35 loc) · 1.03 KB

Javadoc

https://jitpack.io/com/github/angeschossen/BetterFarmingAPI/latest/javadoc/

API Usage Explained

Include the API using Gradle:

repositories {
	maven { url 'https://jitpack.io' }
}
dependencies {
    compileOnly "com.github.angeschossen:BetterFarmingAPI:version"
}

Include the API using Maven:

<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.github.angeschossen</groupId>
        <artifactId>BetterFarmingAPI</artifactId>
        <version>version</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

The API is accessible through an implementation of the BetterFarmingAPI interface. BetterFarming needs to be loaded before this API can be used. It doesn't need to be enabled though.

BetterFarmingAPI api = BetterFarmingAPI.getInstance();