mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 14:14:46 +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.
30 lines
571 B
Java
30 lines
571 B
Java
package noppes.npcs.scripted.interfaces.handler;
|
|
import noppes.npcs.scripted.interfaces.entity.ICustomNpc;
|
|
|
|
public interface IPlayerData {
|
|
|
|
void setCompanion(ICustomNpc npc);
|
|
|
|
ICustomNpc getCompanion();
|
|
|
|
boolean hasCompanion();
|
|
|
|
int getCompanionID();
|
|
|
|
IPlayerDialogData getDialogData();
|
|
|
|
IPlayerBankData getBankData();
|
|
|
|
IPlayerQuestData getQuestData();
|
|
|
|
IPlayerTransportData getTransportData();
|
|
|
|
IPlayerFactionData getFactionData();
|
|
|
|
IPlayerItemGiverData getItemGiverData();
|
|
|
|
IPlayerMailData getMailData();
|
|
|
|
void save();
|
|
}
|