https://github.com/maxlego08/zhead
https://github.com/maxlego08/zhead
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maxlego08/zhead
- Owner: Maxlego08
- License: gpl-3.0
- Created: 2024-03-18T14:43:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-12T11:54:48.000Z (5 months ago)
- Last Synced: 2025-03-18T17:14:34.099Z (4 months ago)
- Language: Java
- Size: 158 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
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();
}
```