mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 15:24:47 +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,31 +2,52 @@ package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
/**
|
||||
* Represents a mail message sent to a player, containing pages of text,
|
||||
* sender info, optional quest, and item attachments.
|
||||
*/
|
||||
public interface IPlayerMail {
|
||||
|
||||
/**
|
||||
* Sets the page text content.
|
||||
*
|
||||
* @param pages an array of strings, one per page.
|
||||
*/
|
||||
void setPageText(String[] pages);
|
||||
|
||||
/** @return the page text as an array of strings. */
|
||||
String[] getPageText();
|
||||
|
||||
/** @return the number of pages. */
|
||||
int getPageCount();
|
||||
|
||||
/** @param sender the sender name. */
|
||||
void setSender(String sender);
|
||||
|
||||
/** @return the sender name. */
|
||||
String getSender();
|
||||
|
||||
/** @param subject the mail subject line. */
|
||||
void setSubject(String subject);
|
||||
|
||||
/** @return the mail subject line. */
|
||||
String getSubject();
|
||||
|
||||
/** @return milliseconds since the mail was sent. */
|
||||
long getTimePast();
|
||||
|
||||
/** @return the timestamp when the mail was sent. */
|
||||
long getTimeSent();
|
||||
|
||||
/** @return true if this mail has an associated quest. */
|
||||
boolean hasQuest();
|
||||
|
||||
/** @return the quest attached to this mail, or null if none. */
|
||||
IQuest getQuest();
|
||||
|
||||
/** @return the item attachments. */
|
||||
IItemStack[] getItems();
|
||||
|
||||
/** @param items the item attachments. */
|
||||
void setItems(IItemStack[] items);
|
||||
}
|
||||
Reference in new issue
Block a user