mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Added line support for ICustomNpc
This commit is contained in:
1 parent
8fe2bb89ea
commit
eed9dbb92e
5 files changed
+104
-20
No files matched your search
@@ -12,6 +12,7 @@ import noppes.npcs.api.handler.IOverlayHandler;
|
||||
import noppes.npcs.api.handler.data.IAnimationData;
|
||||
import noppes.npcs.api.handler.data.IDialog;
|
||||
import noppes.npcs.api.handler.data.IFaction;
|
||||
import noppes.npcs.api.handler.data.ILines;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
import noppes.npcs.api.jobs.IJob;
|
||||
import noppes.npcs.api.roles.IRole;
|
||||
@@ -351,6 +352,26 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
NoppesUtilServer.setNpcDialog(slot,dialogId, this.npc);
|
||||
}
|
||||
|
||||
public ILines getInteractLines() {
|
||||
return this.npc.advanced.interactLines;
|
||||
}
|
||||
|
||||
public ILines getWorldLines() {
|
||||
return this.npc.advanced.worldLines;
|
||||
}
|
||||
|
||||
public ILines getAttackLines() {
|
||||
return this.npc.advanced.attackLines;
|
||||
}
|
||||
|
||||
public ILines getKilledLines() {
|
||||
return this.npc.advanced.killedLines;
|
||||
}
|
||||
|
||||
public ILines getKillLines() {
|
||||
return this.npc.advanced.killLines;
|
||||
}
|
||||
|
||||
/**
|
||||
* Kill the npc, doesnt't despawn it
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user