13
0
geforkt von Mirrors/Paper

Revert additions to skull BlockState API from 1.7.8

By: Travis Watkins <amaranth@ubuntu.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2014-04-17 08:40:04 -05:00
Ursprung 0ebd864e63
Commit 22428bb2fc

Datei anzeigen

@ -1,10 +1,7 @@
package org.bukkit.block; package org.bukkit.block;
import org.bukkit.OfflinePlayer;
import org.bukkit.SkullType; import org.bukkit.SkullType;
import java.util.UUID;
/** /**
* Represents a Skull * Represents a Skull
*/ */
@ -18,45 +15,23 @@ public interface Skull extends BlockState {
public boolean hasOwner(); 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 * @return the owner of the skull or null if the skull does not have an owner
* @deprecated Skulls no longer store player names, they store profiles
* @see #getPlayer()
*/ */
@Deprecated
public String getOwner(); 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 * @param name the new owner of the skull
* @return true if the owner was successfully set * @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); 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 * Gets the rotation of the skull in the world
* *