mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 03:44:43 +00:00
IEnergy + IBarriers
This commit is contained in:
1 parent
efa8721d36
commit
3d648425fa
8 files changed
+235
-49
No files matched your search
@@ -0,0 +1,64 @@
|
||||
package noppes.npcs.api.entity;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
/**
|
||||
* Base interface for energy barrier entities (Dome, Panel).
|
||||
* Barriers are defensive structures that block incoming energy projectiles.
|
||||
* Extends IEnergyAbility for shared display/lightning/owner/charging methods.
|
||||
*/
|
||||
public interface IEnergyBarrier<T extends Entity> extends IEnergyAbility<T> {
|
||||
|
||||
// ==================== HEALTH ====================
|
||||
|
||||
float getCurrentHealth();
|
||||
|
||||
void setCurrentHealth(float health);
|
||||
|
||||
float getHealthPercent();
|
||||
|
||||
float getMaxHealth();
|
||||
|
||||
void setMaxHealth(float maxHealth);
|
||||
|
||||
boolean isUseHealth();
|
||||
|
||||
void setUseHealth(boolean useHealth);
|
||||
|
||||
// ==================== DURATION ====================
|
||||
|
||||
int getDuration();
|
||||
|
||||
void setDuration(int ticks);
|
||||
|
||||
boolean isUseDuration();
|
||||
|
||||
void setUseDuration(boolean useDuration);
|
||||
|
||||
// ==================== STATE (BARRIER-SPECIFIC) ====================
|
||||
|
||||
int getTicksAlive();
|
||||
|
||||
// ==================== BARRIER ====================
|
||||
|
||||
float getDefaultMultiplier();
|
||||
|
||||
void setDefaultMultiplier(float multiplier);
|
||||
|
||||
boolean isKnockbackEnabled();
|
||||
|
||||
void setKnockbackEnabled(boolean enabled);
|
||||
|
||||
float getKnockbackStrength();
|
||||
|
||||
void setKnockbackStrength(float strength);
|
||||
|
||||
int getKnockbackTarget();
|
||||
|
||||
void setKnockbackTarget(int target);
|
||||
|
||||
/**
|
||||
* Returns the barrier type: 0=Dome, 1=Panel
|
||||
*/
|
||||
int getBarrierType();
|
||||
}
|
||||
Reference in new issue
Block a user