mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 13:14:44 +00:00
27 lines
703 B
Java
27 lines
703 B
Java
package noppes.npcs.api.event;
|
|
|
|
import cpw.mods.fml.common.eventhandler.Cancelable;
|
|
import noppes.npcs.api.handler.data.IFaction;
|
|
|
|
/**
|
|
* Events fired when a player's faction standing changes.
|
|
*/
|
|
public interface IFactionEvent extends IPlayerEvent {
|
|
|
|
/** @return the faction involved in this event. */
|
|
IFaction getFaction();
|
|
|
|
/**
|
|
* Fired when a player's faction points change. Cancelable.
|
|
* @hookName factionPoints
|
|
*/
|
|
@Cancelable
|
|
interface FactionPoints extends IFactionEvent {
|
|
/** @return true if the points decreased, false if increased. */
|
|
boolean decreased();
|
|
|
|
/** @return the amount of points changed. */
|
|
int getPoints();
|
|
}
|
|
}
|