blob: c60860e118c28d1895e528233d5ab5fc2e25dbdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
package org.bukkit.inventory.meta;
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
/**
* Represents a skull ({@link Material#SKULL_ITEM}) that can have an owner.
*/
public interface SkullMeta extends ItemMeta {
/**
* Gets the owner of the skull.
*
* @return the owner if the skull
* @deprecated see {@link #setOwningPlayer(org.bukkit.OfflinePlayer)}.
*/
@Deprecated
String getOwner();
/**
* Checks to see if the skull has an owner.
*
* @return true if the skull has an owner
*/
boolean hasOwner();
/**
* Sets the owner of the skull.
* <p>
* Plugins should check that hasOwner() returns true before calling this
* plugin.
*
* @param owner the new owner of the skull
* @return true if the owner was successfully set
* @deprecated see {@link #setOwningPlayer(org.bukkit.OfflinePlayer)}.
*/
@Deprecated
boolean setOwner(String owner);
/**
* Gets the owner of the skull.
*
* @return the owner if the skull
*/
OfflinePlayer getOwningPlayer();
/**
* Sets the owner of the skull.
* <p>
* Plugins should check that hasOwner() returns true before calling this
* plugin.
*
* @param owner the new owner of the skull
* @return true if the owner was successfully set
*/
boolean setOwningPlayer(OfflinePlayer owner);
SkullMeta clone();
}
|