Added getHookName() function

This commit is contained in:
Luis C.M committed 2022-11-24 16:46:20 -06:00
1 parent 8ea98cba9b
commit 681f62eeb6
12 files changed
+383 -3

No files matched your search

@@ -4,6 +4,7 @@ import cpw.mods.fml.common.eventhandler.Cancelable;
import noppes.npcs.api.event.IFactionEvent;
import noppes.npcs.api.handler.data.IFaction;
import noppes.npcs.api.entity.IPlayer;
import noppes.npcs.constants.EnumScriptType;
public class FactionEvent extends CustomNPCsEvent implements IFactionEvent {
public final IFaction faction;
@@ -22,6 +23,10 @@ public class FactionEvent extends CustomNPCsEvent implements IFactionEvent {
return faction;
}
public String getHookName() {
return EnumScriptType.FACTION_EVENT.function;
}
@Cancelable
public static class FactionPoints extends FactionEvent implements IFactionEvent.FactionPoints {
public boolean decrease;
@@ -33,6 +38,10 @@ public class FactionEvent extends CustomNPCsEvent implements IFactionEvent {
this.points = points;
}
public String getHookName() {
return EnumScriptType.FACTION_POINTS.function;
}
public boolean decreased() {
return decrease;
}