Class SkullUtil
java.lang.Object
me.despical.inventoryframework.util.SkullUtil
An utility class for working with skulls
- Since:
- 0.5.0
Created at 04.09.2020
- Author:
- Despical
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.inventory.ItemStackGets a skull from the specified id.static voidSets the skull of an existingItemMetafrom the specified id.
-
Method Details
-
getSkull
@NotNull public static @NotNull org.bukkit.inventory.ItemStack getSkull(@NotNull @NotNull String id) Gets a skull from the specified id. The id is the value from the textures.minecraft.net website after the last '/' character.- Parameters:
id- the skull id- Returns:
- the skull item
- Since:
- 1.0.1
-
setSkull
public static void setSkull(@NotNull @NotNull org.bukkit.inventory.meta.ItemMeta meta, @NotNull @NotNull String id) Sets the skull of an existingItemMetafrom the specified id. The id is the value from the textures.minecraft.net website after the last '/' character.- Parameters:
meta- the meta to changeid- the skull id
-