mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 16:34:46 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,49 @@
|
||||
package noppes.npcs.scripted;
|
||||
|
||||
import noppes.npcs.controllers.Faction;
|
||||
|
||||
public class ScriptFaction {
|
||||
private Faction faction;
|
||||
|
||||
public ScriptFaction(Faction faction){
|
||||
this.faction = faction;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the factions id
|
||||
*/
|
||||
public int getId(){
|
||||
return faction.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Return the factions name
|
||||
*/
|
||||
public String getName(){
|
||||
return faction.name;
|
||||
}
|
||||
|
||||
public int getDefaultPoints(){
|
||||
return faction.defaultPoints;
|
||||
}
|
||||
|
||||
public int getColor(){
|
||||
return faction.color;
|
||||
}
|
||||
|
||||
public boolean isFriendlyToPlayer(ScriptPlayer player){
|
||||
return faction.isFriendlyToPlayer(player.player);
|
||||
}
|
||||
|
||||
public boolean isNeutralToPlayer(ScriptPlayer player){
|
||||
return faction.isNeutralToPlayer(player.player);
|
||||
}
|
||||
|
||||
public boolean isAggressiveToPlayer(ScriptPlayer player){
|
||||
return faction.isAggressiveToPlayer(player.player);
|
||||
}
|
||||
|
||||
public boolean isAggressiveToNpc(ScriptNpc npc){
|
||||
return faction.isAggressiveToNpc(npc.npc);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user