Package noppes.npcs.api.handler.data
Interface IFaction
public interface IFaction
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddHostile(int id) booleanintgetColor()intint[]intgetId()booleangetName()booleanhasHostile(int id) booleanhostileToFaction(int factionId) booleanhostileToNpc(ICustomNpc npc) intplayerStatus(IPlayer player) voidremoveHostile(int id) voidsave()voidsetAttackedByMobs(boolean bo) voidsetDefaultPoints(int points) voidsetIsHidden(boolean bo)
-
Method Details
-
getId
int getId() -
getName
String getName() -
getDefaultPoints
int getDefaultPoints() -
setDefaultPoints
void setDefaultPoints(int points) -
getColor
int getColor() -
playerStatus
- Returns:
- Returns -1:Unfriendly, 0:Neutral, 1:Friendly
-
hostileToNpc
-
hostileToFaction
boolean hostileToFaction(int factionId) -
getHostileList
int[] getHostileList() -
addHostile
void addHostile(int id) -
removeHostile
void removeHostile(int id) -
hasHostile
boolean hasHostile(int id) -
getIsHidden
boolean getIsHidden() -
setIsHidden
void setIsHidden(boolean bo) -
getAttackedByMobs
boolean getAttackedByMobs() -
setAttackedByMobs
void setAttackedByMobs(boolean bo) -
save
void save()
-