mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 16:39:49 +00:00
-Implemented interfaces for all jobs & roles. ScriptPlayer: -Added getData() function, which returns player data objects. IPlayerData: New class that holds all player data for modification. -Holds dialog, bank, quest, transport, faction, item giver, and mail data. -Also holds companion data, with functions has/set/getCompanion, and a getCompanionID function to differentiate companions.
25 lines
452 B
Java
25 lines
452 B
Java
package noppes.npcs.scripted.interfaces.handler;
|
|
|
|
import noppes.npcs.scripted.interfaces.handler.data.IQuest;
|
|
|
|
public interface IPlayerQuestData {
|
|
|
|
IQuest getTrackedQuest();
|
|
|
|
void startQuest(int id);
|
|
|
|
void finishQuest(int id);
|
|
|
|
void stopQuest(int id);
|
|
|
|
void removeQuest(int id);
|
|
|
|
boolean hasFinishedQuest(int id);
|
|
|
|
public boolean hasActiveQuest(int id);
|
|
|
|
IQuest[] getActiveQuests();
|
|
|
|
IQuest[] getFinishedQuests();
|
|
}
|