mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 04:54:44 +00:00
IAbilityEffect
This commit is contained in:
1 parent
2c2f0c0d8f
commit
a27e115950
2 files changed
+49
-38
No files matched your search
@@ -0,0 +1,49 @@
|
||||
package noppes.npcs.api.ability.type;
|
||||
|
||||
import noppes.npcs.api.ability.IAbility;
|
||||
|
||||
/**
|
||||
* API interface for Effect abilities.
|
||||
* Applies healing, potion effects, custom effects, and mod-registered effect actions
|
||||
* to self or nearby entities.
|
||||
*/
|
||||
public interface IAbilityEffect extends IAbility {
|
||||
|
||||
int getDurationTicks();
|
||||
void setDurationTicks(int ticks);
|
||||
|
||||
float getHealAmount();
|
||||
void setHealAmount(float amount);
|
||||
|
||||
float getHealPercent();
|
||||
void setHealPercent(float percent);
|
||||
|
||||
boolean isIncludeSelf();
|
||||
void setIncludeSelf(boolean includeSelf);
|
||||
|
||||
float getRadius();
|
||||
void setRadius(float radius);
|
||||
|
||||
boolean isInstantHeal();
|
||||
void setInstantHeal(boolean instant);
|
||||
|
||||
/**
|
||||
* @return Target filter type ordinal: 0=ALLIES, 1=ENEMIES, 2=ALL
|
||||
*/
|
||||
int getTargetFilterType();
|
||||
|
||||
/**
|
||||
* @param filter Target filter type ordinal: 0=ALLIES, 1=ENEMIES, 2=ALL
|
||||
*/
|
||||
void setTargetFilterType(int filter);
|
||||
|
||||
/**
|
||||
* @return Number of configured custom effects (from CustomEffectController)
|
||||
*/
|
||||
int getCustomEffectCount();
|
||||
|
||||
/**
|
||||
* @return Number of configured mod-registered effect actions
|
||||
*/
|
||||
int getEffectActionCount();
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
package noppes.npcs.api.ability.type;
|
||||
|
||||
import noppes.npcs.api.ability.IAbility;
|
||||
|
||||
/**
|
||||
* API interface for Heal abilities.
|
||||
* Healing self and/or allies.
|
||||
*/
|
||||
public interface IAbilityHeal extends IAbility {
|
||||
|
||||
int getDurationTicks();
|
||||
|
||||
void setDurationTicks(int ticks);
|
||||
|
||||
float getHealAmount();
|
||||
|
||||
void setHealAmount(float amount);
|
||||
|
||||
float getHealPercent();
|
||||
|
||||
void setHealPercent(float percent);
|
||||
|
||||
boolean isHealSelf();
|
||||
|
||||
void setHealSelf(boolean healSelf);
|
||||
|
||||
boolean isHealAllies();
|
||||
|
||||
void setHealAllies(boolean healAllies);
|
||||
|
||||
float getHealRadius();
|
||||
|
||||
void setHealRadius(float radius);
|
||||
|
||||
boolean isInstantHeal();
|
||||
|
||||
void setInstantHeal(boolean instant);
|
||||
}
|
||||
Reference in new issue
Block a user