Package noppes.npcs.api.handler
Interface IPlayerItemGiverData
-
public interface IPlayerItemGiverDataTracks item giver interaction data for a player, including cooldown timestamps and interaction history.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetTime(IJobItemGiver jobItemGiver)Returns the last interaction time for the given item giver job.booleanhasInteractedBefore(IJobItemGiver jobItemGiver)Checks whether the player has interacted with the item giver before.voidsetTime(IJobItemGiver jobItemGiver, long day)Sets the last interaction time for the given item giver job.
-
-
-
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.
-
-