Class PlayerHead

java.lang.Object
io.github.bakedlibs.dough.skins.PlayerHead

public final class PlayerHead extends Object
  • Method Details

    • getItemStack

      @Nonnull public static ItemStack getItemStack(@Nonnull OfflinePlayer player)
      This Method will simply return the Head of the specified Player
      Parameters:
      player - The Owner of your Head
      Returns:
      A new Head Item for the specified Player
    • getItemStack

      @Nonnull public static ItemStack getItemStack(@Nonnull PlayerSkin skin)
      This Method will simply return the Head of the specified Player
      Parameters:
      skin - The skin of the head you want.
      Returns:
      A new Head Item for the specified Player
    • setSkin

      @ParametersAreNonnullByDefault public static void setSkin(Block block, PlayerSkin skin, boolean sendBlockUpdate)