mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 08:34:45 +00:00
43 lines
973 B
Java
43 lines
973 B
Java
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 {
|
|
}
|
|
}
|