mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 06:25:12 +00:00
Added line support for ICustomNpc
This commit is contained in:
1 parent
8a6a873a6d
commit
8c064246f8
3 files changed
+51
No files matched your search
@@ -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<T extends EntityCreature> extends IEntityLiving<T> {
|
||||
|
||||
void setDialog(int slot, int dialogId);
|
||||
|
||||
ILines getInteractLines();
|
||||
|
||||
ILines getWorldLines();
|
||||
|
||||
ILines getAttackLines();
|
||||
|
||||
ILines getKilledLines();
|
||||
|
||||
ILines getKillLines();
|
||||
|
||||
/**
|
||||
* Kill the npc, doesnt't despawn it
|
||||
*/
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user