Package me.hsgamer.hscore.bukkit.skull
Interface SkullHandler
public interface SkullHandler
The skull handler
-
Method Summary
Modifier and TypeMethodDescriptionboolean
compareSkull
(org.bukkit.inventory.meta.SkullMeta meta1, org.bukkit.inventory.meta.SkullMeta meta2) Compare 2 skull metasstatic SkullHandler
Get the instancegetSkullValue
(org.bukkit.inventory.meta.SkullMeta meta) Get the skull valuedefault void
setSkullByName
(org.bukkit.inventory.meta.SkullMeta meta, String name) Set the skull by the namevoid
setSkullByPlayer
(org.bukkit.inventory.meta.SkullMeta meta, org.bukkit.OfflinePlayer player) Set the skull by the playerdefault void
setSkullByURL
(org.bukkit.inventory.meta.SkullMeta meta, String url) Set the skull by the URLvoid
setSkullByURL
(org.bukkit.inventory.meta.SkullMeta meta, URL url) Set the skull by the URLdefault void
setSkullByUUID
(org.bukkit.inventory.meta.SkullMeta meta, UUID uuid) Set the skull by the UUID
-
Method Details
-
getInstance
Get the instance- Returns:
- the instance
-
setSkullByName
Set the skull by the name- Parameters:
meta
- the skull metaname
- the name
-
setSkullByUUID
Set the skull by the UUID- Parameters:
meta
- the skull metauuid
- 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 metaplayer
- the player
-
setSkullByURL
Set the skull by the URL- Parameters:
meta
- the skull metaurl
- the URL
-
setSkullByURL
Set the skull by the URL- Parameters:
meta
- the skull metaurl
- the URL
-
getSkullValue
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 metameta2
- the second skull meta- Returns:
- true if they are the same
-