Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dre2n/headlib
A library for custom heads.
https://github.com/dre2n/headlib
bukkit minecraft
Last synced: about 2 months ago
JSON representation
A library for custom heads.
- Host: GitHub
- URL: https://github.com/dre2n/headlib
- Owner: DRE2N
- License: cc0-1.0
- Created: 2018-07-27T22:00:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T06:05:44.000Z (almost 2 years ago)
- Last Synced: 2024-03-27T09:54:53.142Z (9 months ago)
- Topics: bukkit, minecraft
- Language: Java
- Size: 139 KB
- Stars: 9
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Usage
HeadLib is a library for CraftBukkit servers to create custom player heads
from Base64 encoded Strings. It contains hundreds of built-in heads.### Code example
```
// Creating a custom head item stack
HeadLib.WOODEN_EXCLAMATION_MARK.toItemStack();
HeadLib.WOODEN_EXCLAMATION_MARK.toItemStack(3);
HeadLib.WOODEN_EXCLAMATION_MARK.toItemStack(3, ChatColor.DARK_RED + "Item Display Name", "var", "args", "for", "lore");
HeadLib.WOODEN_EXCLAMATION_MARK.toItemStack(ChatColor.DARK_RED + "Item Display Name", "var", "args", "for", "lore");// Giving an item to a player
HeadLib.WOODEN_EXCLAMATION_MARK.give(player);
HeadLib.WOODEN_EXCLAMATION_MARK.give(player, 3);
HeadLib.WOODEN_EXCLAMATION_MARK.give(player, 3, ChatColor.DARK_RED + "Item Display Name", "var", "args", "for", "lore");
HeadLib.WOODEN_EXCLAMATION_MARK.give(player, ChatColor.DARK_RED + "Item Display Name", "var", "args", "for", "lore");// Using a Base64 encoded String to create a head
String texture = "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMmM2NDVhNDI1OTg3ZjNiN2MyZmFjMDIwNmNlOThiYTVlMjNiOWM0ODUyZmVhNWIxOTc4Zjc0NjdlOGQzMTMifX19";
ItemStack texturedSkull = HeadLib.setSkullOwner(head, player.getUniqueId(), textureValue);
String textureFromSkull = HeadLib.getTextureValue(head);
```## Maven Repository
```
de.erethon
headlib
{number of latest version}
dre-repo
https://erethon.de/repo/
```HeadLib is a library that developers can shade or copy into their own plugin.
This is not a standalone plugin.
Shading libraries can be done using Maven and its shade plugin:```
org.apache.maven.plugins
maven-shade-plugin
3.2.4
package
shade
de.erethon:headlib
```## License
Written from 2018-2022 by Daniel SaukelTo the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software
to the public domain worldwide.This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication
along with this software. If not, see .