mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 09:55:12 +00:00
A lot of GOOD API DOCUMENTATION
This commit is contained in:
1 parent
a6c55ca331
commit
319e774518
131 files changed
+3363
-175
No files matched your search
@@ -2,11 +2,33 @@ package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.jobs.IJobItemGiver;
|
||||
|
||||
/**
|
||||
* Tracks item giver interaction data for a player, including
|
||||
* cooldown timestamps and interaction history.
|
||||
*/
|
||||
public interface IPlayerItemGiverData {
|
||||
|
||||
/**
|
||||
* Returns the last interaction time for the given item giver job.
|
||||
*
|
||||
* @param jobItemGiver the item giver job.
|
||||
* @return the last interaction time in game ticks.
|
||||
*/
|
||||
long getTime(IJobItemGiver jobItemGiver);
|
||||
|
||||
/**
|
||||
* Sets the last interaction time for the given item giver job.
|
||||
*
|
||||
* @param jobItemGiver the item giver job.
|
||||
* @param day the time to set in game ticks.
|
||||
*/
|
||||
void setTime(IJobItemGiver jobItemGiver, long day);
|
||||
|
||||
/**
|
||||
* Checks whether the player has interacted with the item giver before.
|
||||
*
|
||||
* @param jobItemGiver the item giver job.
|
||||
* @return true if previously interacted; false otherwise.
|
||||
*/
|
||||
boolean hasInteractedBefore(IJobItemGiver jobItemGiver);
|
||||
}
|
||||
Reference in new issue
Block a user