All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.inventory.meta.SkullMeta Maven / Gradle / Ivy

package org.bukkit.inventory.meta;

import org.bukkit.Material;

/**
 * Represents a skull ({@link Material#SKULL_ITEM}) that can have an owner.
 */
public interface SkullMeta extends ItemMeta {

  void setURL(String url);

  default String getURL() {
    return "not implemented";
  }

  /**
   * Gets the owner of the skull.
   *
   * @return the owner if the skull
   */
  String getOwner();

  /**
   * Checks to see if the skull has an owner.
   *
   * @return true if the skull has an owner
   */
  boolean hasOwner();

  /**
   * Sets the owner of the skull.
   * 

* Plugins should check that hasOwner() returns true before calling this * plugin. * * @param owner the new owner of the skull * @return true if the owner was successfully set */ boolean setOwner(String owner); SkullMeta clone(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy