Interface Skull

All Superinterfaces:
BlockState, Metadatable

public interface Skull
extends BlockState
Represents a Skull
  • Method Details

    • hasOwner

      boolean hasOwner()
      Checks to see if the skull has an owner
      Returns:
      true if the skull has an owner
    • getOwner

      java.lang.String getOwner()
      Gets the owner of the skull, if one exists
      Returns:
      the owner of the skull or null if the skull does not have an owner
    • setOwner

      boolean setOwner​(java.lang.String name)
      Sets the owner of the skull

      Involves a potentially blocking web request to acquire the profile data for the provided name.

      Parameters:
      name - the new owner of the skull
      Returns:
      true if the owner was successfully set
    • getRotation

      BlockFace getRotation()
      Gets the rotation of the skull in the world
      Returns:
      the rotation of the skull
    • setRotation

      void setRotation​(BlockFace rotation)
      Sets the rotation of the skull in the world
      Parameters:
      rotation - the rotation of the skull
    • getSkullType

      SkullType getSkullType()
      Gets the type of skull
      Returns:
      the type of skull
    • setSkullType

      void setSkullType​(SkullType skullType)
      Sets the type of skull
      Parameters:
      skullType - the type of skull