mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 11:59:26 +00:00
- Healing Health Scaling with DBC Addon - Ki Attacks collided with Barriers - Remove Ability Slot (Deprecated) - Refactored Naming Scheme for Barrier Abilities - Fixed Player Settings for Ignore Dex, DBC Stats, etc.
38 lines
889 B
Java
38 lines
889 B
Java
package noppes.npcs.scripted.entity;
|
|
|
|
import kamkeel.npcs.entity.EntityAbilityDome;
|
|
import noppes.npcs.api.entity.IEnergyDome;
|
|
import noppes.npcs.scripted.constants.EntityType;
|
|
|
|
public class ScriptEnergyDome<T extends EntityAbilityDome> extends ScriptEnergyBarrier<T> implements IEnergyDome {
|
|
|
|
public ScriptEnergyDome(T entity) {
|
|
super(entity);
|
|
}
|
|
|
|
@Override
|
|
public int getType() {
|
|
return EntityType.ENERGY_DOME;
|
|
}
|
|
|
|
@Override
|
|
public boolean typeOf(int type) {
|
|
return type == EntityType.ENERGY_DOME || super.typeOf(type);
|
|
}
|
|
|
|
@Override
|
|
public int getBarrierType() {
|
|
return 0;
|
|
}
|
|
|
|
// ==================== DOME-SPECIFIC ====================
|
|
|
|
public float getDomeRadius() {
|
|
return entity.getDomeRadius();
|
|
}
|
|
|
|
public void setDomeRadius(float radius) {
|
|
entity.setDomeRadius(radius);
|
|
}
|
|
}
|