mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 15:24:47 +00:00
Counter, Dodge, Guard Abilities [WIP]
This commit is contained in:
1 parent
e504fc4b4a
commit
27a41e3a8e
4 files changed
+61
-32
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package noppes.npcs.api.ability.type;
|
||||
|
||||
/**
|
||||
* API interface for Counter abilities.
|
||||
* Absorbs incoming damage and counter-attacks the attacker.
|
||||
*/
|
||||
public interface IAbilityCounter extends IAbilityDefend {
|
||||
|
||||
int getCounterType();
|
||||
|
||||
void setCounterType(int type);
|
||||
|
||||
float getCounterValue();
|
||||
|
||||
void setCounterValue(float value);
|
||||
|
||||
int getCounterAnimationId();
|
||||
|
||||
void setCounterAnimationId(int animationId);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package noppes.npcs.api.ability.type;
|
||||
|
||||
import noppes.npcs.api.ability.IAbility;
|
||||
|
||||
/**
|
||||
* API interface for defensive abilities (Guard, Counter, Dodge).
|
||||
*/
|
||||
public interface IAbilityDefend extends IAbility {
|
||||
|
||||
int getDurationTicks();
|
||||
|
||||
void setDurationTicks(int ticks);
|
||||
|
||||
int getMaxHitAmount();
|
||||
|
||||
void setMaxHitAmount(int amount);
|
||||
|
||||
boolean isDefending();
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package noppes.npcs.api.ability.type;
|
||||
|
||||
/**
|
||||
* API interface for Dodge abilities.
|
||||
* Cancels the incoming attack event entirely and plays a random dodge animation.
|
||||
*/
|
||||
public interface IAbilityDodge extends IAbilityDefend {
|
||||
|
||||
int getDodgeAnimation1Id();
|
||||
|
||||
void setDodgeAnimation1Id(int animationId);
|
||||
|
||||
int getDodgeAnimation2Id();
|
||||
|
||||
void setDodgeAnimation2Id(int animationId);
|
||||
|
||||
int getDodgeAnimation3Id();
|
||||
|
||||
void setDodgeAnimation3Id(int animationId);
|
||||
}
|
||||
@@ -1,42 +1,12 @@
|
||||
package noppes.npcs.api.ability.type;
|
||||
|
||||
import noppes.npcs.api.ability.IAbility;
|
||||
|
||||
/**
|
||||
* API interface for Guard abilities.
|
||||
* Defensive stance with optional counter-attack.
|
||||
* Defensive stance that reduces incoming damage.
|
||||
*/
|
||||
public interface IAbilityGuard extends IAbility {
|
||||
|
||||
int getDurationTicks();
|
||||
|
||||
void setDurationTicks(int ticks);
|
||||
|
||||
int getCounterWindow();
|
||||
|
||||
void setCounterWindow(int ticks);
|
||||
public interface IAbilityGuard extends IAbilityDefend {
|
||||
|
||||
float getDamageReduction();
|
||||
|
||||
void setDamageReduction(float reduction);
|
||||
|
||||
boolean canCounter();
|
||||
|
||||
void setCanCounter(boolean canCounter);
|
||||
|
||||
int getCounterType();
|
||||
|
||||
void setCounterType(int type);
|
||||
|
||||
float getCounterValue();
|
||||
|
||||
void setCounterValue(float value);
|
||||
|
||||
String getCounterSound();
|
||||
|
||||
void setCounterSound(String sound);
|
||||
|
||||
int getCounterAnimationId();
|
||||
|
||||
void setCounterAnimationId(int animationId);
|
||||
}
|
||||
Reference in new issue
Block a user