Interface Skull

    • Method Detail

      • hasOwner

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

        @Nullable
        OfflinePlayer getOwningPlayer()
        Get the player which owns the skull. This player may appear as the texture depending on skull type.
        Returns:
        owning player
      • setOwningPlayer

        void setOwningPlayer​(@NotNull
                             OfflinePlayer player)
        Set the player which owns the skull. This player may appear as the texture depending on skull type.
        Parameters:
        player - the owning player
      • getRotation

        @Deprecated
        @NotNull
        BlockFace getRotation()
        Deprecated.
        Gets the rotation of the skull in the world (or facing direction if this is a wall mounted skull).
        Returns:
        the rotation of the skull
      • setRotation

        @Deprecated
        void setRotation​(@NotNull
                         BlockFace rotation)
        Deprecated.
        Sets the rotation of the skull in the world (or facing direction if this is a wall mounted skull).
        Parameters:
        rotation - the rotation of the skull
      • setSkullType

        @Deprecated
        @Contract("_ -> fail")
        void setSkullType​(SkullType skullType)
        Deprecated.
        check Material instead
        Sets the type of skull
        Parameters:
        skullType - the type of skull