Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[B+C] Update SkullMeta to use UUIDs. Adds BUKKIT-5614 #1080

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 12 additions & 5 deletions src/main/java/org/bukkit/inventory/meta/SkullMeta.java
@@ -1,5 +1,7 @@
package org.bukkit.inventory.meta;

import java.util.UUID;

import org.bukkit.Material;

/**
Expand All @@ -22,12 +24,17 @@ public interface SkullMeta extends ItemMeta {
boolean hasOwner();

/**
* Sets the owner of the skull.
* <p>
* Plugins should check that hasOwner() returns true before calling this
* plugin.
* Sets the owner of the skull by UUID.
*
* @param owner the UUID of the new owner of the skull
* @return true if the owner was successfully set
*/
boolean setOwner(UUID owner);

/**
* Sets the owner of the skull by name.
*
* @param owner the new owner of the skull
* @param owner the name of the new owner of the skull
* @return true if the owner was successfully set
*/
boolean setOwner(String owner);
Expand Down