001 package org.bukkit.inventory.meta; 002 003 import org.bukkit.Material; 004 005 /** 006 * Represents a skull ({@link Material#SKULL_ITEM}) that can have an owner. 007 */ 008 public interface SkullMeta extends ItemMeta { 009 010 /** 011 * Gets the owner of the skull. 012 * 013 * @return the owner if the skull 014 */ 015 String getOwner(); 016 017 /** 018 * Checks to see if the skull has an owner. 019 * 020 * @return true if the skull has an owner 021 */ 022 boolean hasOwner(); 023 024 /** 025 * Sets the owner of the skull. 026 * <p> 027 * Plugins should check that hasOwner() returns true before calling this 028 * plugin. 029 * 030 * @param owner the new owner of the skull 031 * @return true if the owner was successfully set 032 */ 033 boolean setOwner(String owner); 034 035 SkullMeta clone(); 036 }