mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Revert additions to skull BlockState API from 1.7.8
By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
parent
0ebd864e63
commit
22428bb2fc
1 changed files with 6 additions and 31 deletions
|
@ -1,10 +1,7 @@
|
|||
package org.bukkit.block;
|
||||
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.SkullType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Represents a Skull
|
||||
*/
|
||||
|
@ -18,45 +15,23 @@ 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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue