Skip to content

Custom Heads

Hempfest edited this page Oct 8, 2021 · 7 revisions

About

Our end goal is to have thousands of pre loaded heads in cache and ready for you to use, in the mean time we have various ways you can go about retrieving any player-head you want.

Loading databases from yaml.

Code:

String location = "My_Key";
Configurable c = FileManager#getRoot();
CustomHeadLoader loader = CustomHead.Manager.newLoader(c).look(location);
CustomHead.Manager.load(loader);

File:

# Import your own custom heads from this HUGE library!
# Simply copy the desired heads "Value" and paste it into a new labeled section.
# Player heads don't need a "custom:" or "value:" value within their sections as they are considered Human heads.
# Link: https://minecraft-heads.com/custom-heads
My_Key:
  1:
    custom: true
    name: Monitor
    category: Decoration
    value: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjg1YThiYTRkZThlYjdlMjgzNzRlMDJiMDNjZmRiZTIyYmRjNjAzMWMzNmFjYjJlZWEyZGVkN2RkZWQ4MzE5NCJ9fX0=='
  2:
    custom: true
    name: Left_Button
    category: Navigation
    value: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzdhZWU5YTc1YmYwZGY3ODk3MTgzMDE1Y2NhMGIyYTdkNzU1YzYzMzg4ZmYwMTc1MmQ1ZjQ0MTlmYzY0NSJ9fX0'
  3:
    custom: true
    name: Right_Button
    category: Navigation
    value: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjgyYWQxYjljYjRkZDIxMjU5YzBkNzVhYTMxNWZmMzg5YzNjZWY3NTJiZTM5NDkzMzgxNjRiYWM4NGE5NmUifX19'
  4:
    custom: false
    name: Hempfest
    category: Human

Grabbing heads

Getting heads is easy! All you need is either a uuid or playername and you're golden! As long as they're a valid mojang player you can grab the head of anyone regardless of if they have ever joined your server or not! You can optionally provide base64 values with CustomHeadLoder.provide(String) but as before mentioned having the player tag information does all of the work for you!

CustomHead.Manager.get(String name); // = CustomHead obj
CustomHead.Manager.get(UUID id); // = CustomHead obj
CustomHead.Manager.get(OfflinePlayer player); // = CustomHead obj
Clone this wiki locally