Skip to content

This is the ItemsAdder API repository. It serves as a Maven/Gradle reference for anyone looking to access the API without embedding/owning the entire plugin.

Notifications You must be signed in to change notification settings

LoneDev6/API-ItemsAdder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ ItemsAdder - API

This repository only serves the point of providing access to the method signatures of ItemsAdder's Java API.
This repository does NOT contain the source code of ItemsAdder, to test and use this, you will still require a copy of ItemsAdder!



⚠️ Important

When you use the API it's very important to listen to the ItemsAdderLoadDataEvent event in order to make sure items are correctly loaded before accessing them. ItemsAdder loading is async, that's why.

📦 Packages

You can find an overview of all packages here:
https://github.com/LoneDev6/API-ItemsAdder/packages/

Alternatively you can directly reference this library using Maven or Gradle by following the instructions outlined below.

Table of contents

Developer reference (Maven)

To build your project against this library, simply include one of the following references in your pom.xml:

1. via jitpack.io

Add this to your <repositories> section:

<repository>
    <id>jitpack-repo</id>
    <url>https://jitpack.io</url>
</repository>

In your <dependencies> section (Replace VERSION with the latest release of this package):

<dependency>
    <groupId>com.github.LoneDev6</groupId>
    <artifactId>api-itemsadder</artifactId>
    <version>3.6.1</version>
    <scope>provided</scope>
</dependency>

2. via maven.pkg.github.com (requires authentication)

Add this to your <repositories> section:

<repository>
    <id>itemsadder-repo</id>
    <url>https://maven.pkg.github.com/LoneDev6/API-ItemsAdder</url>
</repository>

In your <dependencies> section (Replace VERSION with the latest release of this package):

<dependency>
    <groupId>dev.lone</groupId>
    <artifactId>api-itemsadder</artifactId>
    <version>3.6.1</version>
    <scope>provided</scope>
</dependency>

Note here that the GitHub package repository requires authentication! (Read more)
Alternatively, you can also include the dependency using jitpack.io.

Developer reference (Gradle)

1. via maven.pkg.github.com (requires authentication)

Repository:

repositories {
    maven {
        url 'https://maven.pkg.github.com/LoneDev6/API-ItemsAdder'
    }
}

Artifact (Replace VERSION with the latest release of this package):

dependencies {
    compileOnly 'dev.lone:api-itemsadder:3.6.1'
}

Note here that the GitHub package repository requires authentication! (Read more)
Alternatively, you can also include the dependency using jitpack.io.

2. via jitpack.io

Repository:

repositories {
    maven {
        url 'https://jitpack.io'
    }
}

Artifact (Replace VERSION with the latest release of this package):

dependencies {
    compileOnly 'com.github.LoneDev6:API-ItemsAdder:3.6.1'
}

Examples

GUI

https://github.com/LoneDev6/API-ItemsAdder-Example-GUI

Complex HUDs usage (ServerMonitor)

https://github.com/LoneDev6/API-ItemsAdder-Example-ServerMonitor

About

This is the ItemsAdder API repository. It serves as a Maven/Gradle reference for anyone looking to access the API without embedding/owning the entire plugin.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages