mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 03:49:10 +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
@@ -11,10 +11,15 @@ import noppes.npcs.api.AbstractNpcAPI;
|
||||
import noppes.npcs.api.IPos;
|
||||
import noppes.npcs.api.event.ICustomNPCsEvent;
|
||||
import noppes.npcs.api.handler.data.INaturalSpawn;
|
||||
import noppes.npcs.constants.EnumScriptType;
|
||||
|
||||
public class CustomNPCsEvent extends Event implements ICustomNPCsEvent {
|
||||
public final AbstractNpcAPI API = AbstractNpcAPI.Instance();
|
||||
|
||||
public String getHookName() {
|
||||
return "CNPCEvent";
|
||||
}
|
||||
|
||||
public CustomNPCsEvent() {
|
||||
}
|
||||
|
||||
@@ -43,6 +48,10 @@ public class CustomNPCsEvent extends Event implements ICustomNPCsEvent {
|
||||
this.airSpawnPassed = airSpawnPassed;
|
||||
}
|
||||
|
||||
public String getHookName() {
|
||||
return EnumScriptType.CNPC_NATURAL_SPAWN.function;
|
||||
}
|
||||
|
||||
public INaturalSpawn getNaturalSpawn() {
|
||||
return this.naturalSpawn;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user