public interface HeadCreator
  • Method Summary

    Modifier and Type
    Method
    Description
    createHead(org.bukkit.entity.Player player, String newHeadName)
    Create a head based on a skin from a given Player and head name.
  • Method Details

    • createHead

      Map<String,Head> createHead(org.bukkit.entity.Player player, String newHeadName)
      Create a head based on a skin from a given Player and head name. The head will also be stored in the local database. This method returns a map, because different head databases could give the head a different UUID
      Parameters:
      player - the player who's skin will be used to create the head
      newHeadName - the name of the newly created head
      Returns:
      the map of newly created heads (with database name as key)
      Throws:
      LockingException - when the current thread is unable to obtain the lock for starting a transaction