Package noppes.npcs.api.handler.data
Interface IFaction
public interface IFaction
-
Method Summary
Modifier and Type Method Description void
addHostile(int id)
boolean
getAttackedByMobs()
int
getColor()
int
getDefaultPoints()
int[]
getHostileList()
int
getId()
boolean
getIsHidden()
java.lang.String
getName()
boolean
hasHostile(int id)
boolean
hostileToFaction(int factionId)
boolean
hostileToNpc(ICustomNpc npc)
int
playerStatus(IPlayer player)
void
removeHostile(int id)
void
save()
void
setAttackedByMobs(boolean bo)
void
setDefaultPoints(int points)
void
setIsHidden(boolean bo)
-
Method Details
-
getId
int getId() -
getName
java.lang.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()
-