java.lang.Object
nl.pim16aap2.animatedarchitecture.core.api.restartable.Restartable
nl.pim16aap2.animatedarchitecture.spigot.core.managers.HeadManager
All Implemented Interfaces:
IRestartable

@Singleton public final class HeadManager extends Restartable
Represents a manager of player heads with the texture of a certain player.
  • Constructor Details

  • Method Details

    • getPlayerHead

      public CompletableFuture<Optional<org.bukkit.inventory.ItemStack>> getPlayerHead(UUID playerUUID, String displayName)
      Requests the ItemStack of a head with the texture of the player's head. This is done asynchronously because it can take quite a bit of time.
      Parameters:
      playerUUID - The UUID of the player whose head to get.
      displayName - The display name to give assign to the ItemStack.
      Returns:
      The ItemStack of a head with the texture of the player's head if possible.
    • initialize

      public void initialize()
      Description copied from interface: IRestartable
      Handles the initialization.
    • shutDown

      public void shutDown()
      Description copied from interface: IRestartable
      Handles a shutdown.