Interface IRoleFollower

  • All Superinterfaces:
    IRole

    public interface IRoleFollower
    extends IRole
    • Method Detail

      • setOwner

        void setOwner​(IPlayer player)
        Parameters:
        player - Player who is set as the owner. If null given everything resets
        Since:
        1.7.10c
      • getOwner

        IPlayer getOwner()
        Returns:
        Returns the followers owner. Returns null if he has no owner or the owner is offline
        Since:
        1.7.10c
      • hasOwner

        boolean hasOwner()
        Returns:
        Returns whether or not the follower has an owner
        Since:
        1.7.10c
      • isFollowing

        boolean isFollowing()
      • setIsFollowing

        void setIsFollowing​(boolean following)
      • getDaysLeft

        int getDaysLeft()
        Returns:
        Returns days left
        Since:
        1.7.10c
      • addDaysLeft

        void addDaysLeft​(int days)
        Parameters:
        days - The days you want to add to the days remaining
        Since:
        1.7.10c
      • getInfiniteDays

        boolean getInfiniteDays()
        Returns:
        Returns whether or not the follower is set to infinite days
        Since:
        1.7.10c
      • setInfiniteDays

        void setInfiniteDays​(boolean infinite)
        Parameters:
        infinite - Sets whether the days hired are infinite
        Since:
        1.7.10c
      • getGuiDisabled

        boolean getGuiDisabled()
        Returns:
        Return whether the gui is disabled
        Since:
        1.7.10c
      • setGuiDisabled

        void setGuiDisabled​(boolean disabled)
        Parameters:
        disabled - Set the gui to be disabled or not
        Since:
        1.7.10c
      • setRate

        void setRate​(int index,
                     int amount)
        Parameters:
        index - Index of Rate [0 - 2]
        amount - Amount hired for
      • getRate

        int getRate​(int index)
        Parameters:
        index - Index of Rate [0 - 2]
        Returns:
        amount fired for
      • setDialogHire

        void setDialogHire​(java.lang.String dialogHire)
        Parameters:
        dialogHire - New dialog hire string
      • getDialogHire

        java.lang.String getDialogHire()
        Returns:
        dialog hire string
      • setDialogFarewell

        void setDialogFarewell​(java.lang.String dialogFarewell)
        Parameters:
        dialogFarewell - New dialog farewell string
      • getDialogFarewell

        java.lang.String getDialogFarewell()
        Returns:
        dialog farewell string