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

public class GlowSkull extends GlowBlockState implements org.bukkit.block.Skull
  • Constructor Details

    • GlowSkull

      public GlowSkull(GlowBlock block)
      Creates the instance for the given block.
      Parameters:
      block - a head/skull block
  • Method Details

    • getBlockEntity

      public SkullEntity getBlockEntity()
    • update

      public boolean update(boolean force, boolean applyPhysics)
      Specified by:
      update in interface org.bukkit.block.BlockState
      Overrides:
      update in class GlowBlockState
    • hasOwner

      public boolean hasOwner()
      Specified by:
      hasOwner in interface org.bukkit.block.Skull
    • getOwner

      public String getOwner()
      Specified by:
      getOwner in interface org.bukkit.block.Skull
    • setOwner

      public boolean setOwner(String name)
      Specified by:
      setOwner in interface org.bukkit.block.Skull
    • getOwningPlayer

      public org.bukkit.OfflinePlayer getOwningPlayer()
      Specified by:
      getOwningPlayer in interface org.bukkit.block.Skull
    • setOwningPlayer

      public void setOwningPlayer(org.bukkit.OfflinePlayer offlinePlayer)
      Specified by:
      setOwningPlayer in interface org.bukkit.block.Skull
    • getPlayerProfile

      @Nullable public @Nullable com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()
      Specified by:
      getPlayerProfile in interface org.bukkit.block.Skull
    • setPlayerProfile

      public void setPlayerProfile(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile profile)
      Specified by:
      setPlayerProfile in interface org.bukkit.block.Skull
    • setSkullType

      public void setSkullType(org.bukkit.SkullType type)
      Specified by:
      setSkullType in interface org.bukkit.block.Skull
    • getPersistentDataContainer

      @NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()
      Specified by:
      getPersistentDataContainer in interface org.bukkit.persistence.PersistentDataHolder
      Specified by:
      getPersistentDataContainer in interface org.bukkit.block.TileState
    • getSkullType

      public org.bukkit.SkullType getSkullType()
      Specified by:
      getSkullType in interface org.bukkit.block.Skull
    • getRotation

      public org.bukkit.block.BlockFace getRotation()
      Specified by:
      getRotation in interface org.bukkit.block.Skull
    • setRotation

      public void setRotation(org.bukkit.block.BlockFace rotation)
      Specified by:
      setRotation in interface org.bukkit.block.Skull