diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2014-04-17 08:40:04 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2014-04-17 08:40:04 -0500 |
commit | 1cab5e5edc6b32fac8c42bf94568f1c8d1b8a8e6 (patch) | |
tree | a75a97eb3f3b99747390877dd0cc15eb2b399f6d /src | |
parent | b930d28588d46dfc068860ef4c980375e47739aa (diff) | |
download | bukkit-1cab5e5edc6b32fac8c42bf94568f1c8d1b8a8e6.tar bukkit-1cab5e5edc6b32fac8c42bf94568f1c8d1b8a8e6.tar.gz bukkit-1cab5e5edc6b32fac8c42bf94568f1c8d1b8a8e6.tar.lz bukkit-1cab5e5edc6b32fac8c42bf94568f1c8d1b8a8e6.tar.xz bukkit-1cab5e5edc6b32fac8c42bf94568f1c8d1b8a8e6.zip |
Revert additions to skull BlockState API from 1.7.8
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/block/Skull.java | 37 |
1 files changed, 6 insertions, 31 deletions
diff --git a/src/main/java/org/bukkit/block/Skull.java b/src/main/java/org/bukkit/block/Skull.java index e0f9fd3c..4f4896f8 100644 --- a/src/main/java/org/bukkit/block/Skull.java +++ b/src/main/java/org/bukkit/block/Skull.java @@ -1,10 +1,7 @@ package org.bukkit.block; -import org.bukkit.OfflinePlayer; import org.bukkit.SkullType; -import java.util.UUID; - /** * Represents a Skull */ @@ -18,46 +15,24 @@ public interface Skull extends BlockState { public boolean hasOwner(); /** - * Gets the owner of the skull + * Gets the owner of the skull, if one exists * - * @return the owner of the skull or null if the profile does not have a name - * @deprecated Skulls no longer store player names, they store profiles - * @see #getPlayer() + * @return the owner of the skull or null if the skull does not have an owner */ - @Deprecated public String getOwner(); /** - * Does nothing + * Sets the owner of the skull + * <p> + * Involves a potentially blocking web request to acquire the profile data for + * the provided name. * * @param name the new owner of the skull * @return true if the owner was successfully set - * @deprecated Skulls no longer store player names, they store profiles - * @see #setPlayer(org.bukkit.OfflinePlayer) */ - @Deprecated public boolean setOwner(String name); /** - * Gets the owner of the skull, if one exists - * - * @return the owner of the skull or null if this skull does not have an owner - */ - public OfflinePlayer getPlayer(); - - /** - * Sets the owner of the skull to this player - * <p> - * If the owner does not contain all the needed data for the skull a call to - * {@link #update()} may potentially involve a blocking web request to acquire - * the missing data. - * - * @param player the new owner of the skull - * @return true if the owner was successfully set - */ - public boolean setPlayer(OfflinePlayer player); - - /** * Gets the rotation of the skull in the world * * @return the rotation of the skull |