Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxlego08/zhead
https://github.com/maxlego08/zhead
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/maxlego08/zhead
- Owner: Maxlego08
- License: gpl-3.0
- Created: 2024-03-18T14:43:04.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-06-21T13:20:39.000Z (5 months ago)
- Last Synced: 2024-10-12T03:48:24.415Z (about 1 month ago)
- Language: Java
- Size: 155 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
}
```