mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 16:55:12 +00:00
Added getHookName() function
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user