Interface SkullMeta

    • 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()
        Gets the owner of the skull.
        Returns:
        the owner if the skull
      • setOwningPlayer

        boolean setOwningPlayer​(@Nullable
                                OfflinePlayer owner)
        Sets the owner of the skull.

        Plugins should check that hasOwner() returns true before calling this plugin.

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