Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxlego08/zhead


https://github.com/maxlego08/zhead

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

# zHead Database

We would like to extend our heartfelt thanks to [Minecraft-Heads.com](https://minecraft-heads.com/) for providing their API, which has been an invaluable source of all the data used in our project.

# API

Jitpack: https://jitpack.io/#Maxlego08/zHead

Maven
```xml


jitpack.io
https://jitpack.io

com.github.Maxlego08
zHead
1.1
provided

```

```java
public void example(){
HeadManager headManager = getProvider(HeadManager.class);
ItemStack itemStack = headManager.createItemStack(); # Create an itemstack using an head ID, if the id doesn't exist the itemstack will be null
List heads = headManager.search(); # Search for a list of heads based on its name, id, or tag
Optional optional = headManager.getHead();
}

public T getProvider(Class classz) {
RegisteredServiceProvider provider = getServer().getServicesManager().getRegistration(classz);
return provider == null ? null : provider.getProvider();
}
```