Interface SkullHandler


public interface SkullHandler
The skull handler
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    compareSkull(org.bukkit.inventory.meta.SkullMeta meta1, org.bukkit.inventory.meta.SkullMeta meta2)
    Compare 2 skull metas
    Get the instance
    getSkullValue(org.bukkit.inventory.meta.SkullMeta meta)
    Get the skull value
    default void
    setSkullByName(org.bukkit.inventory.meta.SkullMeta meta, String name)
    Set the skull by the name
    void
    setSkullByPlayer(org.bukkit.inventory.meta.SkullMeta meta, org.bukkit.OfflinePlayer player)
    Set the skull by the player
    default void
    setSkullByURL(org.bukkit.inventory.meta.SkullMeta meta, String url)
    Set the skull by the URL
    void
    setSkullByURL(org.bukkit.inventory.meta.SkullMeta meta, URL url)
    Set the skull by the URL
    default void
    setSkullByUUID(org.bukkit.inventory.meta.SkullMeta meta, UUID uuid)
    Set the skull by the UUID
  • Method Details

    • getInstance

      static SkullHandler getInstance()
      Get the instance
      Returns:
      the instance
    • setSkullByName

      default void setSkullByName(org.bukkit.inventory.meta.SkullMeta meta, String name)
      Set the skull by the name
      Parameters:
      meta - the skull meta
      name - the name
    • setSkullByUUID

      default void setSkullByUUID(org.bukkit.inventory.meta.SkullMeta meta, UUID uuid)
      Set the skull by the UUID
      Parameters:
      meta - the skull meta
      uuid - the UUID
    • setSkullByPlayer

      void setSkullByPlayer(org.bukkit.inventory.meta.SkullMeta meta, org.bukkit.OfflinePlayer player)
      Set the skull by the player
      Parameters:
      meta - the skull meta
      player - the player
    • setSkullByURL

      void setSkullByURL(org.bukkit.inventory.meta.SkullMeta meta, URL url)
      Set the skull by the URL
      Parameters:
      meta - the skull meta
      url - the URL
    • setSkullByURL

      default void setSkullByURL(org.bukkit.inventory.meta.SkullMeta meta, String url)
      Set the skull by the URL
      Parameters:
      meta - the skull meta
      url - the URL
    • getSkullValue

      String getSkullValue(org.bukkit.inventory.meta.SkullMeta meta)
      Get the skull value
      Parameters:
      meta - the skull meta
      Returns:
      the skull value
    • compareSkull

      boolean compareSkull(org.bukkit.inventory.meta.SkullMeta meta1, org.bukkit.inventory.meta.SkullMeta meta2)
      Compare 2 skull metas
      Parameters:
      meta1 - the first skull meta
      meta2 - the second skull meta
      Returns:
      true if they are the same