Package net.glowstone.block.entity.state
Class GlowSkull
java.lang.Object
net.glowstone.block.GlowBlockState
net.glowstone.block.entity.state.GlowSkull
- All Implemented Interfaces:
org.bukkit.block.BlockState,org.bukkit.block.Skull,org.bukkit.block.TileState,org.bukkit.metadata.Metadatable,org.bukkit.persistence.PersistentDataHolder
-
Field Summary
Fields inherited from class net.glowstone.block.GlowBlockState
blockData, data, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()org.bukkit.OfflinePlayer@NotNull org.bukkit.persistence.PersistentDataContainer@Nullable com.destroystokyo.paper.profile.PlayerProfileorg.bukkit.block.BlockFaceorg.bukkit.SkullTypebooleanhasOwner()booleanvoidsetOwningPlayer(org.bukkit.OfflinePlayer offlinePlayer) voidsetPlayerProfile(@NotNull com.destroystokyo.paper.profile.PlayerProfile profile) voidsetRotation(org.bukkit.block.BlockFace rotation) voidsetSkullType(org.bukkit.SkullType type) booleanupdate(boolean force, boolean applyPhysics) Methods inherited from class net.glowstone.block.GlowBlockState
canEqual, equals, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hashCode, hasMetadata, isFlowed, isPlaced, removeMetadata, setBlockData, setData, setFlowed, setMetadata, setRawData, setType, toString, update, updateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, updateMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
Constructor Details
-
GlowSkull
Creates the instance for the given block.- Parameters:
block- a head/skull block
-
-
Method Details
-
getBlockEntity
-
update
public boolean update(boolean force, boolean applyPhysics) - Specified by:
updatein interfaceorg.bukkit.block.BlockState- Overrides:
updatein classGlowBlockState
-
hasOwner
public boolean hasOwner()- Specified by:
hasOwnerin interfaceorg.bukkit.block.Skull
-
getOwner
- Specified by:
getOwnerin interfaceorg.bukkit.block.Skull
-
setOwner
- Specified by:
setOwnerin interfaceorg.bukkit.block.Skull
-
getOwningPlayer
public org.bukkit.OfflinePlayer getOwningPlayer()- Specified by:
getOwningPlayerin interfaceorg.bukkit.block.Skull
-
setOwningPlayer
public void setOwningPlayer(org.bukkit.OfflinePlayer offlinePlayer) - Specified by:
setOwningPlayerin interfaceorg.bukkit.block.Skull
-
getPlayerProfile
@Nullable public @Nullable com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()- Specified by:
getPlayerProfilein interfaceorg.bukkit.block.Skull
-
setPlayerProfile
public void setPlayerProfile(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile profile) - Specified by:
setPlayerProfilein interfaceorg.bukkit.block.Skull
-
setSkullType
public void setSkullType(org.bukkit.SkullType type) - Specified by:
setSkullTypein interfaceorg.bukkit.block.Skull
-
getPersistentDataContainer
@NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()- Specified by:
getPersistentDataContainerin interfaceorg.bukkit.persistence.PersistentDataHolder- Specified by:
getPersistentDataContainerin interfaceorg.bukkit.block.TileState
-
getSkullType
public org.bukkit.SkullType getSkullType()- Specified by:
getSkullTypein interfaceorg.bukkit.block.Skull
-
getRotation
public org.bukkit.block.BlockFace getRotation()- Specified by:
getRotationin interfaceorg.bukkit.block.Skull
-
setRotation
public void setRotation(org.bukkit.block.BlockFace rotation) - Specified by:
setRotationin interfaceorg.bukkit.block.Skull
-