https://github.com/commandjoo/wynn4j
A Simple Wynncraft API Wrapper written in Java
https://github.com/commandjoo/wynn4j
api java minecraft mmorpg wynncraft
Last synced: 11 months ago
JSON representation
A Simple Wynncraft API Wrapper written in Java
- Host: GitHub
- URL: https://github.com/commandjoo/wynn4j
- Owner: CommandJoo
- Created: 2022-09-06T15:27:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-05T19:26:54.000Z (over 3 years ago)
- Last Synced: 2025-02-08T17:09:32.863Z (about 1 year ago)
- Topics: api, java, minecraft, mmorpg, wynncraft
- Language: Java
- Homepage:
- Size: 211 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **Wynn4j**
[](https://forthebadge.com)
## Description
Wynn4j is an easy to use api for ```Java``` that allows you
to either directly access WynnCraft Api Objects by using the built-in methods that
are provided or using custom requests allowing the user to access all Api-Endpoints
## Importing
You can use this api by adding the JitPack repository to your ```build.gradle``` File.
```groovy
repositories {
//... your other repositories
maven { url 'https://jitpack.io' }
}
```
And then adding the project to your dependencies
```groovy
dependencies {
//... your other dependencies
implementation 'com.github.CommandJoo:Wynn4j:1.0.0'
}
```
## Usage
To get a new instance of the WynnCraftAPI just use
```java
WynnCraftAPI api = new WynnCraftAPI(debug);
```
To directly get provided objects use the api methods
```java
WynnPlayer player = api.player("Player Name");
WynnItem item = api.item("Item Name", index);
```
If you however want to use more complex filters or want to see Guild and User rankings
You have to access the api via requests which can be found under ```de.jo.wynn.api.requests```
and work like this
```java
Response response = api.request(new Request());
```