Reformat Code

This commit is contained in:
Kam committed 2026-02-18 05:13:49 -05:00
1 parent ae4b84f3ba
commit ca2980909e
32 files changed
+268 -36

No files matched your search

@@ -127,36 +127,42 @@ public interface IAbility extends IAbilityAction {
/**
* Get the lock movement type for this ability.
*
* @return 0=NO, 1=WINDUP, 2=ACTIVE, 3=WINDUP_AND_ACTIVE
*/
int getLockMovementType();
/**
* Set the lock movement type for this ability.
*
* @param type 0=NO, 1=WINDUP, 2=ACTIVE, 3=WINDUP_AND_ACTIVE
*/
void setLockMovementType(int type);
/**
* Get the rotation mode for this ability.
*
* @return 0=FREE, 1=LOCKED, 2=TRACK
*/
int getRotationModeType();
/**
* Set the rotation mode for this ability.
*
* @param type 0=FREE, 1=LOCKED, 2=TRACK
*/
void setRotationModeType(int type);
/**
* Get the rotation phase for this ability (when rotation mode applies).
*
* @return 0=NO, 1=WINDUP, 2=ACTIVE, 3=WINDUP_AND_ACTIVE
*/
int getRotationPhaseType();
/**
* Set the rotation phase for this ability.
*
* @param type 0=NO, 1=WINDUP, 2=ACTIVE, 3=WINDUP_AND_ACTIVE
*/
void setRotationPhaseType(int type);
@@ -198,12 +204,14 @@ public interface IAbility extends IAbilityAction {
/**
* Get the allowed user type for this ability.
*
* @return 0=NPC_ONLY, 1=PLAYER_ONLY, 2=BOTH
*/
int getAllowedByType();
/**
* Set the allowed user type for this ability.
*
* @param type 0=NPC_ONLY, 1=PLAYER_ONLY, 2=BOTH
*/
void setAllowedByType(int type);
@@ -231,17 +239,22 @@ public interface IAbility extends IAbilityAction {
// Burst system
boolean isBurstEnabled();
void setBurstEnabled(boolean enabled);
int getBurstAmount();
void setBurstAmount(int amount);
int getBurstDelay();
void setBurstDelay(int delay);
boolean isBurstReplayAnimations();
void setBurstReplayAnimations(boolean replay);
boolean isBurstOverlap();
void setBurstOverlap(boolean overlap);
}
@@ -106,7 +106,7 @@ public interface IDataAbilities {
* If an ability is currently executing, it will be cancelled.
*
* @param abilityId The ID of the ability to start
* @param target The target entity (can be null for self-targeted abilities)
* @param target The target entity (can be null for self-targeted abilities)
* @return true if the ability was started successfully
*/
boolean forceStartAbility(String abilityId, Object target);
@@ -126,7 +126,7 @@ public interface IDataAbilities {
* The NPC does NOT need to have this ability assigned.
* If an ability is currently executing, it will be cancelled.
*
* @param key The ability key (built-in name or custom UUID)
* @param key The ability key (built-in name or custom UUID)
* @param target The target entity (can be null for self-targeted abilities)
* @return true if the ability was started successfully
*/
@@ -9,14 +9,18 @@ import noppes.npcs.api.ability.IAbility;
public interface IAbilityCharge extends IAbility {
float getChargeSpeed();
void setChargeSpeed(float speed);
float getDamage();
void setDamage(float damage);
float getKnockback();
void setKnockback(float knockback);
float getHitWidth();
void setHitWidth(float width);
}
@@ -9,32 +9,41 @@ import noppes.npcs.api.ability.IAbility;
public interface IAbilityCutter extends IAbility {
float getArcAngle();
void setArcAngle(float angle);
float getRange();
void setRange(float range);
float getDamage();
void setDamage(float damage);
float getKnockback();
void setKnockback(float knockback);
/**
* Get the sweep mode (0 = SWIPE, 1 = SPIN).
*/
int getSweepMode();
void setSweepMode(int mode);
float getSweepSpeed();
void setSweepSpeed(float speed);
int getSpinDurationTicks();
void setSpinDurationTicks(int ticks);
boolean isPiercing();
void setPiercing(boolean piercing);
float getInnerRadius();
void setInnerRadius(float radius);
}
@@ -12,11 +12,14 @@ public interface IAbilityDash extends IAbility {
* Get the dash mode (0 = AGGRESSIVE, 1 = DEFENSIVE).
*/
int getDashMode();
void setDashMode(int mode);
float getDashDistance();
void setDashDistance(float distance);
float getDashSpeed();
void setDashSpeed(float speed);
}
@@ -7,53 +7,73 @@ package noppes.npcs.api.ability.type;
public interface IAbilityDisc extends IAbilityEnergyProjectile {
float getSpeed();
void setSpeed(float speed);
float getDiscRadius();
void setDiscRadius(float radius);
float getDiscThickness();
void setDiscThickness(float thickness);
boolean isVertical();
void setVertical(boolean vertical);
boolean isBoomerang();
void setBoomerang(boolean boomerang);
int getBoomerangDelay();
void setBoomerangDelay(int ticks);
boolean isHoming();
void setHoming(boolean homing);
float getHomingStrength();
void setHomingStrength(float strength);
float getHomingRange();
void setHomingRange(float range);
float getRotationSpeed();
void setRotationSpeed(float speed);
int getProjectileCount();
void setProjectileCount(int count);
int getFireDelay();
void setFireDelay(int delay);
/** @deprecated Use {@link #getFireDelay()} */
/**
* @deprecated Use {@link #getFireDelay()}
*/
int getDualFireDelay();
/** @deprecated Use {@link #setFireDelay(int)} */
/**
* @deprecated Use {@link #setFireDelay(int)}
*/
void setDualFireDelay(int delay);
// Indexed accessors
int getInnerColor(int projectileIndex);
void setInnerColor(int projectileIndex, int color);
int getOuterColor(int projectileIndex);
void setOuterColor(int projectileIndex, int color);
int getAnchorPoint(int projectileIndex);
void setAnchorPoint(int projectileIndex, int point);
}
@@ -7,44 +7,61 @@ package noppes.npcs.api.ability.type;
public interface IAbilityEnergyBeam extends IAbilityEnergyProjectile {
float getSpeed();
void setSpeed(float speed);
float getBeamWidth();
void setBeamWidth(float width);
float getHeadSize();
void setHeadSize(float size);
boolean isHoming();
void setHoming(boolean homing);
float getHomingStrength();
void setHomingStrength(float strength);
float getHomingRange();
void setHomingRange(float range);
float getRotationSpeed();
void setRotationSpeed(float speed);
int getProjectileCount();
void setProjectileCount(int count);
int getFireDelay();
void setFireDelay(int delay);
/** @deprecated Use {@link #getFireDelay()} */
/**
* @deprecated Use {@link #getFireDelay()}
*/
int getDualFireDelay();
/** @deprecated Use {@link #setFireDelay(int)} */
/**
* @deprecated Use {@link #setFireDelay(int)}
*/
void setDualFireDelay(int delay);
// Indexed accessors
int getInnerColor(int projectileIndex);
void setInnerColor(int projectileIndex, int color);
int getOuterColor(int projectileIndex);
void setOuterColor(int projectileIndex, int color);
int getAnchorPoint(int projectileIndex);
void setAnchorPoint(int projectileIndex, int point);
}
@@ -10,57 +10,74 @@ public interface IAbilityEnergyProjectile extends IAbility {
// Combat
float getDamage();
void setDamage(float damage);
float getKnockback();
void setKnockback(float knockback);
float getKnockbackUp();
void setKnockbackUp(float knockback);
boolean isExplosive();
void setExplosive(boolean explosive);
float getExplosionRadius();
void setExplosionRadius(float radius);
float getExplosionDamageFalloff();
void setExplosionDamageFalloff(float falloff);
// Lifespan
float getMaxDistance();
void setMaxDistance(float distance);
int getMaxLifetime();
void setMaxLifetime(int ticks);
// Colors
int getInnerColor();
void setInnerColor(int color);
int getOuterColor();
void setOuterColor(int color);
boolean isOuterColorEnabled();
void setOuterColorEnabled(boolean enabled);
float getOuterColorWidth();
void setOuterColorWidth(float width);
float getOuterColorAlpha();
void setOuterColorAlpha(float alpha);
// Lightning
boolean hasLightningEffect();
void setLightningEffect(boolean enabled);
float getLightningDensity();
void setLightningDensity(float density);
float getLightningRadius();
void setLightningRadius(float radius);
// Anchor
int getAnchorPoint();
void setAnchorPoint(int point);
}
@@ -9,26 +9,34 @@ import noppes.npcs.api.ability.IAbility;
public interface IAbilityGuard extends IAbility {
int getDurationTicks();
void setDurationTicks(int ticks);
int getCounterWindow();
void setCounterWindow(int ticks);
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);
}
@@ -7,17 +7,22 @@ package noppes.npcs.api.ability.type;
public interface IAbilityHazard extends IAbilityZone {
float getRadius();
void setRadius(float radius);
float getDamagePerSecond();
void setDamagePerSecond(float damage);
int getDamageInterval();
void setDamageInterval(int interval);
boolean isIgnoreInvulnFrames();
void setIgnoreInvulnFrames(boolean ignore);
boolean isAffectsCaster();
void setAffectsCaster(boolean affects);
}
@@ -9,23 +9,30 @@ import noppes.npcs.api.ability.IAbility;
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);
}
@@ -9,14 +9,18 @@ import noppes.npcs.api.ability.IAbility;
public interface IAbilityHeavyHit extends IAbility {
float getDamage();
void setDamage(float damage);
float getKnockback();
void setKnockback(float knockback);
float getHitLength();
void setHitLength(float hitLength);
float getHitWidth();
void setHitWidth(float hitWidth);
}
@@ -7,11 +7,14 @@ package noppes.npcs.api.ability.type;
public interface IAbilityLaserShot extends IAbilityEnergyProjectile {
float getLaserWidth();
void setLaserWidth(float width);
float getExpansionSpeed();
void setExpansionSpeed(float speed);
int getLingerTicks();
void setLingerTicks(int ticks);
}
@@ -7,41 +7,57 @@ package noppes.npcs.api.ability.type;
public interface IAbilityOrb extends IAbilityEnergyProjectile {
float getOrbSpeed();
void setOrbSpeed(float speed);
float getOrbSize();
void setOrbSize(float size);
boolean isHoming();
void setHoming(boolean homing);
float getHomingStrength();
void setHomingStrength(float strength);
float getHomingRange();
void setHomingRange(float range);
float getRotationSpeed();
void setRotationSpeed(float speed);
int getProjectileCount();
void setProjectileCount(int count);
int getFireDelay();
void setFireDelay(int delay);
/** @deprecated Use {@link #getFireDelay()} */
/**
* @deprecated Use {@link #getFireDelay()}
*/
int getDualFireDelay();
/** @deprecated Use {@link #setFireDelay(int)} */
/**
* @deprecated Use {@link #setFireDelay(int)}
*/
void setDualFireDelay(int delay);
// Indexed accessors
int getInnerColor(int projectileIndex);
void setInnerColor(int projectileIndex, int color);
int getOuterColor(int projectileIndex);
void setOuterColor(int projectileIndex, int color);
int getAnchorPoint(int projectileIndex);
void setAnchorPoint(int projectileIndex, int point);
}
@@ -9,26 +9,34 @@ import noppes.npcs.api.ability.IAbility;
public interface IAbilityProjectile extends IAbility {
float getDamage();
void setDamage(float damage);
float getSpeed();
void setSpeed(float speed);
float getKnockback();
void setKnockback(float knockback);
String getProjectileType();
void setProjectileType(String type);
boolean isExplosive();
void setExplosive(boolean explosive);
float getExplosionRadius();
void setExplosionRadius(float radius);
boolean isHoming();
void setHoming(boolean homing);
float getHomingStrength();
void setHomingStrength(float strength);
}
@@ -9,14 +9,18 @@ import noppes.npcs.api.ability.IAbility;
public interface IAbilityShockwave extends IAbility {
float getPushRadius();
void setPushRadius(float radius);
float getPushStrength();
void setPushStrength(float strength);
float getDamage();
void setDamage(float damage);
int getMaxTargets();
void setMaxTargets(int max);
}
@@ -9,17 +9,22 @@ import noppes.npcs.api.ability.IAbility;
public interface IAbilitySlam extends IAbility {
float getDamage();
void setDamage(float damage);
float getRadius();
void setRadius(float radius);
float getKnockbackStrength();
void setKnockbackStrength(float knockback);
float getLeapSpeed();
void setLeapSpeed(float speed);
float getLeapHeight();
void setLeapHeight(float height);
}
@@ -9,41 +9,54 @@ import noppes.npcs.api.ability.IAbility;
public interface IAbilitySweeper extends IAbility {
float getBeamLength();
void setBeamLength(float length);
float getBeamWidth();
void setBeamWidth(float width);
float getBeamHeight();
void setBeamHeight(float height);
float getDamage();
void setDamage(float damage);
int getDamageInterval();
void setDamageInterval(int interval);
boolean isPiercing();
void setPiercing(boolean piercing);
float getSweepSpeed();
void setSweepSpeed(float speed);
int getNumberOfRotations();
void setNumberOfRotations(int rotations);
boolean isLockOnTarget();
void setLockOnTarget(boolean lock);
int getInnerColor();
void setInnerColor(int color);
int getOuterColor();
void setOuterColor(int color);
float getOuterColorWidth();
void setOuterColorWidth(float width);
boolean isOuterColorEnabled();
void setOuterColorEnabled(boolean enabled);
}
@@ -12,32 +12,42 @@ public interface IAbilityTeleport extends IAbility {
* Get the teleport mode (0 = BLINK, 1 = BEHIND, 2 = SINGLE).
*/
int getMode();
void setMode(int mode);
int getBlinkCount();
void setBlinkCount(int count);
int getBlinkDelayTicks();
void setBlinkDelayTicks(int ticks);
float getBlinkRadius();
void setBlinkRadius(float radius);
float getBehindDistance();
void setBehindDistance(float distance);
boolean isRequireLineOfSight();
void setRequireLineOfSight(boolean require);
boolean isDamageAtStart();
void setDamageAtStart(boolean damage);
boolean isDamageAtEnd();
void setDamageAtEnd(boolean damage);
float getDamage();
void setDamage(float damage);
float getDamageRadius();
void setDamageRadius(float radius);
}
@@ -7,26 +7,34 @@ package noppes.npcs.api.ability.type;
public interface IAbilityTrap extends IAbilityZone {
float getTriggerRadius();
void setTriggerRadius(float radius);
int getArmTime();
void setArmTime(int ticks);
int getMaxTriggers();
void setMaxTriggers(int max);
int getTriggerCooldown();
void setTriggerCooldown(int cooldown);
float getDamage();
void setDamage(float damage);
float getDamageRadius();
void setDamageRadius(float radius);
float getKnockback();
void setKnockback(float knockback);
boolean isVisible();
void setVisible(boolean visible);
}
@@ -9,26 +9,34 @@ import noppes.npcs.api.ability.IAbility;
public interface IAbilityVortex extends IAbility {
float getPullRadius();
void setPullRadius(float radius);
float getPullStrength();
void setPullStrength(float strength);
float getDamage();
void setDamage(float damage);
float getKnockback();
void setKnockback(float knockback);
boolean isAoe();
void setAoe(boolean aoe);
int getMaxTargets();
void setMaxTargets(int max);
boolean isDamageOnPull();
void setDamageOnPull(boolean damage);
float getPullDamage();
void setPullDamage(float damage);
}
@@ -9,92 +9,118 @@ import noppes.npcs.api.ability.IAbility;
public interface IAbilityZone extends IAbility {
int getDurationTicks();
void setDurationTicks(int ticks);
/**
* Get the zone shape (0 = CIRCLE, 1 = SQUARE).
*/
int getZoneShapeOrdinal();
void setZoneShapeOrdinal(int shape);
float getSpawnRadius();
void setSpawnRadius(float radius);
int getZoneCount();
void setZoneCount(int count);
float getZoneHeight();
void setZoneHeight(float height);
float getParticleDensity();
void setParticleDensity(float density);
float getParticleScale();
void setParticleScale(float scale);
float getAnimSpeed();
void setAnimSpeed(float speed);
float getLightningDensity();
void setLightningDensity(float density);
// Color controls
int getInnerColor();
void setInnerColor(int color);
int getOuterColor();
void setOuterColor(int color);
boolean isOuterColorEnabled();
void setOuterColorEnabled(boolean enabled);
// Visual layer controls
boolean isGroundFill();
void setGroundFill(boolean enabled);
float getGroundAlpha();
void setGroundAlpha(float alpha);
boolean isRings();
void setRings(boolean enabled);
int getRingCount();
void setRingCount(int count);
boolean isBorder();
void setBorder(boolean enabled);
float getBorderSpeed();
void setBorderSpeed(float speed);
boolean isAccents();
void setAccents(boolean enabled);
/**
* Get the accent style (0=STATIC, 1=SWAYING, 2=FLICKERING).
*/
int getAccentStyle();
void setAccentStyle(int style);
boolean isLightning();
void setLightning(boolean enabled);
boolean isParticles();
void setParticles(boolean enabled);
/**
* Get the particle motion style (0=RISING, 1=DRIFTING, 2=SPARKS).
*/
int getParticleMotion();
void setParticleMotion(int motion);
String getParticleDir();
void setParticleDir(String directory);
int getParticleSize();
void setParticleSize(int size);
boolean isParticleGlow();
void setParticleGlow(boolean glow);
}