public interface Skull extends TileState
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getOwner()
Deprecated.
See
getOwningPlayer() . |
@Nullable OfflinePlayer |
getOwningPlayer()
Get the player which owns the skull.
|
@Nullable PlayerProfile |
getPlayerProfile()
If the skull has an owner, per
hasOwner() , return the owners PlayerProfile |
@NotNull BlockFace |
getRotation()
Deprecated.
use
BlockData |
@NotNull SkullType |
getSkullType()
Deprecated.
check
Material instead |
boolean |
hasOwner()
Checks to see if the skull has an owner
|
boolean |
setOwner(@Nullable String name)
Deprecated.
|
void |
setOwningPlayer(@NotNull OfflinePlayer player)
Set the player which owns the skull.
|
void |
setPlayerProfile(@NotNull PlayerProfile profile)
Sets this skull to use the supplied Player Profile, which can include textures already prefilled.
|
void |
setRotation(@NotNull BlockFace rotation)
Deprecated.
use
BlockData |
void |
setSkullType(SkullType skullType)
Deprecated.
check
Material instead |
getPersistentDataContainer
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
boolean hasOwner()
@Deprecated @Nullable @Nullable String getOwner()
getOwningPlayer()
.@Deprecated @Contract(value="null -> false") boolean setOwner(@Nullable @Nullable String name)
setOwningPlayer(org.bukkit.OfflinePlayer)
.Involves a potentially blocking web request to acquire the profile data for the provided name.
name
- the new owner of the skull@Nullable @Nullable OfflinePlayer getOwningPlayer()
void setOwningPlayer(@NotNull @NotNull OfflinePlayer player)
player
- the owning playervoid setPlayerProfile(@NotNull @NotNull PlayerProfile profile)
profile
- The profile to set this Skull to use, may not be null@Nullable @Nullable PlayerProfile getPlayerProfile()
hasOwner()
, return the owners PlayerProfile
@Deprecated @NotNull @NotNull BlockFace getRotation()
BlockData
@Deprecated void setRotation(@NotNull @NotNull BlockFace rotation)
BlockData
rotation
- the rotation of the skull@Deprecated @NotNull @NotNull SkullType getSkullType()
Material
instead@Deprecated @Contract(value="_ -> fail") void setSkullType(SkullType skullType)
Material
insteadskullType
- the type of skullCopyright © 2021. All rights reserved.