API

How to use developer api or acces?

Maven:

Add this to your pom.xml if you use in maven.

<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>
<dependency>
    <groupId>com.github.minetrone</groupId>
    <artifactId>api-mfurniture</artifactId>
    <version>{RELEASE-VERSION}</version>
</dependency>

Gradle:

Add this to your build.gradle if you use in gradle.

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    compileOnly 'com.github.minetrone:api-mfurniture:{RELEASE-VERSION}'
}

How to use?

MFurnitureAPI has good javadoc.

You can check it out the mfurniture javadoc Java-Doc

public class Main extends JavaPlugin {
    // Returns Main class of plugin
    Main furnitureMain = MFurnitureAPI.getInstance();
    // Gets storage manager
    StorageManager storageManager = MFurnitureAPI.getStorageManager();
    // Gets adventure manager
    AdventureManager adventureManager = MFurnitureAPI.getAdventureManager();
}

Listeners

  • FurnitureBoughtEvent

  • FurnitureBuyGuiOpenEvent

  • FurnitureShowInfoEvent

  • FurnitureDyeEvent

  • FurnitureSubColorDyeEvent

  • FurnitureDyeGuiOpenEvent

Last updated