mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-18 02:15:14 +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
@@ -3,23 +3,38 @@ package noppes.npcs.api.event;
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import noppes.npcs.api.handler.data.IDialog;
|
||||
|
||||
/**
|
||||
* Events fired during dialog interactions between a player and an NPC.
|
||||
*/
|
||||
public interface IDialogEvent extends IPlayerEvent {
|
||||
|
||||
/** @return the dialog associated with this event. */
|
||||
IDialog getDialog();
|
||||
|
||||
/** @return the dialog's unique ID. */
|
||||
int getDialogId();
|
||||
|
||||
/** @return the selected dialog option ID. */
|
||||
int getOptionId();
|
||||
|
||||
/**
|
||||
* Fired when a dialog is opened. Cancelable.
|
||||
* @hookName dialogOpen
|
||||
*/
|
||||
@Cancelable
|
||||
interface DialogOpen extends IDialogEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* Fired when a dialog option is selected. Cancelable.
|
||||
* @hookName dialogOption
|
||||
*/
|
||||
@Cancelable
|
||||
interface DialogOption extends IDialogEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* Fired when a dialog is closed.
|
||||
* @hookName dialogClose
|
||||
*/
|
||||
interface DialogClosed extends IDialogEvent {
|
||||
|
||||
Reference in new issue
Block a user