mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-12 02:21:54 +01:00
SPIGOT-249: Set skull owner by UUID
By: md_5 <git@md-5.net>
This commit is contained in:
parent
bc69ab513e
commit
44956ed250
@ -1,5 +1,7 @@
|
|||||||
package org.bukkit.block;
|
package org.bukkit.block;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
import org.bukkit.OfflinePlayer;
|
||||||
import org.bukkit.SkullType;
|
import org.bukkit.SkullType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -18,7 +20,9 @@ public interface Skull extends BlockState {
|
|||||||
* Gets the owner of the skull, if one exists
|
* Gets the owner of the skull, if one exists
|
||||||
*
|
*
|
||||||
* @return the owner of the skull or null if the skull does not have an owner
|
* @return the owner of the skull or null if the skull does not have an owner
|
||||||
|
* @deprecated See {@link #getOwningPlayer()}.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public String getOwner();
|
public String getOwner();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -29,9 +33,27 @@ public interface Skull extends BlockState {
|
|||||||
*
|
*
|
||||||
* @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 see {@link #setOwningPlayer(org.bukkit.OfflinePlayer)}.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public boolean setOwner(String name);
|
public boolean setOwner(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the player which owns the skull. This player may appear as the
|
||||||
|
* texture depending on skull type.
|
||||||
|
*
|
||||||
|
* @return owning player
|
||||||
|
*/
|
||||||
|
public OfflinePlayer getOwningPlayer();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the player which owns the skull. This player may appear as the
|
||||||
|
* texture depending on skull type.
|
||||||
|
*
|
||||||
|
* @param player the owning player
|
||||||
|
*/
|
||||||
|
public void setOwningPlayer(OfflinePlayer player);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the rotation of the skull in the world
|
* Gets the rotation of the skull in the world
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user