Interface IPlayerItemGiverData


  • public interface IPlayerItemGiverData
    Tracks item giver interaction data for a player, including cooldown timestamps and interaction history.
    • Method Detail

      • getTime

        long getTime​(IJobItemGiver jobItemGiver)
        Returns the last interaction time for the given item giver job.
        Parameters:
        jobItemGiver - the item giver job.
        Returns:
        the last interaction time in game ticks.
      • setTime

        void setTime​(IJobItemGiver jobItemGiver,
                     long day)
        Sets the last interaction time for the given item giver job.
        Parameters:
        jobItemGiver - the item giver job.
        day - the time to set in game ticks.
      • hasInteractedBefore

        boolean hasInteractedBefore​(IJobItemGiver jobItemGiver)
        Checks whether the player has interacted with the item giver before.
        Parameters:
        jobItemGiver - the item giver job.
        Returns:
        true if previously interacted; false otherwise.