diff --git a/java/noppes/npcs/api/entity/ICustomNpc.java b/java/noppes/npcs/api/entity/ICustomNpc.java index f81b8bd..9f9adb3 100644 --- a/java/noppes/npcs/api/entity/ICustomNpc.java +++ b/java/noppes/npcs/api/entity/ICustomNpc.java @@ -13,6 +13,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; @@ -209,6 +210,16 @@ public interface ICustomNpc extends IEntityLiving { void setDialog(int slot, int dialogId); + ILines getInteractLines(); + + ILines getWorldLines(); + + ILines getAttackLines(); + + ILines getKilledLines(); + + ILines getKillLines(); + /** * Kill the npc, doesnt't despawn it */ diff --git a/java/noppes/npcs/api/handler/data/ILine.java b/java/noppes/npcs/api/handler/data/ILine.java new file mode 100644 index 0000000..42ae759 --- /dev/null +++ b/java/noppes/npcs/api/handler/data/ILine.java @@ -0,0 +1,20 @@ +package noppes.npcs.api.handler.data; + +import noppes.npcs.api.entity.IEntityLivingBase; + +public interface ILine { + + ILine formatTarget(IEntityLivingBase entityLivingBase); + + String getText(); + + void setText(String text); + + String getSound(); + + void setSound(String sound); + + void hideText(boolean hide); + + boolean hideText(); +} diff --git a/java/noppes/npcs/api/handler/data/ILines.java b/java/noppes/npcs/api/handler/data/ILines.java new file mode 100644 index 0000000..39ede57 --- /dev/null +++ b/java/noppes/npcs/api/handler/data/ILines.java @@ -0,0 +1,20 @@ +package noppes.npcs.api.handler.data; + +public interface ILines { + + ILine createLine(String text); + + ILine getLine(boolean isRandom); + + ILine getLine(int lineIndex); + + void setLine(int lineIndex, ILine line); + + void removeLine(int lineIndex); + + void clear(); + + boolean isEmpty(); + + Integer[] getKeys(); +}