mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 06:25:11 +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.
23 lines
444 B
Java
23 lines
444 B
Java
package noppes.npcs.scripted.interfaces.handler;
|
|
|
|
import noppes.npcs.scripted.interfaces.handler.data.IPlayerMail;
|
|
|
|
public interface IPlayerMailData {
|
|
|
|
boolean hasMail();
|
|
|
|
void addMail(IPlayerMail mail);
|
|
|
|
void removeMail(IPlayerMail mail);
|
|
|
|
boolean hasMail(IPlayerMail mail);
|
|
|
|
IPlayerMail[] getAllMail();
|
|
|
|
IPlayerMail[] getUnreadMail();
|
|
|
|
IPlayerMail[] getReadMail();
|
|
|
|
IPlayerMail[] getMailFrom(String sender);
|
|
}
|