mirror of
https://github.com/songoda/EpicHeads.git
synced 2024-12-01 23:14:13 +01:00
30 lines
1.0 KiB
Markdown
30 lines
1.0 KiB
Markdown
## Heads
|
|
Search over 17,000 unique, artistic heads which are perfect for builders and servers with this awesome resource Heads.</br>
|
|
Quality, performance, and support are my priorities for this resource. Purchase it for $4.99 (sometimes cheaper with sales).
|
|
> **Note:** Please consider purchasing this resource on Spigot if you want to really support me.
|
|
</br>
|
|
|
|
## Developers
|
|
Here is an example with built-in methods for developers that want to use the developers API to code other resources.
|
|
```ruby
|
|
# Check if Heads is installed and enabled.
|
|
if (HeadsAPI.isEnabled()) {
|
|
Hooray();
|
|
}
|
|
|
|
# How you would get the heads in any way.
|
|
Head getHead(int id)
|
|
Set<String> getCategories()
|
|
List<Head> getAllHeads()
|
|
List<Head> getCategoryHeads(String category)
|
|
void searchHeads(String query, Consumer<List<Head>> onResult)
|
|
void downloadHead(String playerName, Consumer<Head> consumer)
|
|
|
|
# How you would use the heads in any way.
|
|
int getId()
|
|
String getName()
|
|
String getCategory()
|
|
double getCost()
|
|
ItemStack getItem()
|
|
ItemStack getItem(String displayName)
|
|
``` |