mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 11:54:48 +00:00
Add Combat Policy changes to API
This commit is contained in:
1 parent
c8ee840082
commit
30a6c37277
1 file changed
+32
@@ -452,6 +452,38 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
|
||||
*/
|
||||
String getTacticalVariantName();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return Returns the name of the NPC's combat policy.
|
||||
*/
|
||||
String getCombatPolicyName();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param policy Changes the combat policy of the NPC.
|
||||
* 0 - Flip
|
||||
* 1 - Brute
|
||||
* 2 - Stubborn
|
||||
*
|
||||
*/
|
||||
void setCombatPolicy(int policy);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return Returns the ombat policy of the NPC.
|
||||
* 0 - Flip
|
||||
* 1 - Brute
|
||||
* 2 - Stubborn
|
||||
*
|
||||
*/
|
||||
int getCombatPolicy();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param policy Sets the NPC's tactical variant by name.
|
||||
*/
|
||||
void setCombatPolicy(String policy);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param tacticalRadius Sets the radius in which the tactical variant is affected, if any. Effective for all tactical variants except Rush and None.
|
||||
|
||||
Reference in new issue
Block a user