Class SkullUtil

java.lang.Object
me.despical.inventoryframework.util.SkullUtil

public final class SkullUtil extends Object
An utility class for working with skulls
Since:
0.5.0

Created at 04.09.2020

Author:
Despical
  • 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 existing ItemMeta from the specified id. The id is the value from the textures.minecraft.net website after the last '/' character.
      Parameters:
      meta - the meta to change
      id - the skull id