### Example Java Usage of HeadDatabase API Source: https://github.com/arcaniax-development/headdatabase-api/blob/main/README.md This Java code demonstrates how to use the HeadDatabaseAPI to get a custom head item by its ID and log its ID. It listens for the DatabaseLoadEvent to ensure the API is ready. Remember to add HeadDatabase to your plugin.yml's depend or softdepend section. ```java import me.arcaniax.hdb.api.DatabaseLoadEvent; import me.arcaniax.hdb.api.HeadDatabaseAPI; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.inventory.ItemStack; import org.bukkit.plugin.java.JavaPlugin; public class HeadDatabaseAPIPlugin extends JavaPlugin implements Listener { public void onEnable() { this.getServer().getPluginManager().registerEvents(this, this); } @EventHandler public void onDatabaseLoad(DatabaseLoadEvent e) { HeadDatabaseAPI api = new HeadDatabaseAPI(); try { ItemStack item = api.getItemHead("7129"); getLogger().info(api.getItemID(item)); } catch (NullPointerException nullPointerException) { getLogger().info("Could not find the head you were looking for"); } } } ``` -------------------------------- ### Maven Dependency for HeadDatabase API Source: https://github.com/arcaniax-development/headdatabase-api/blob/main/README.md Include this in your pom.xml to add the HeadDatabase API as a provided dependency. ```xml com.arcaniax HeadDatabase-API 1.3.2 provided ``` -------------------------------- ### Gradle Dependency for HeadDatabase API Source: https://github.com/arcaniax-development/headdatabase-api/blob/main/README.md Add this to your build.gradle file to include the HeadDatabase API as a compile-only dependency. ```kotlin repositories { mavenCentral() } dependencies { compileOnly("com.arcaniax:HeadDatabase-API:1.3.2") } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.