diff --git a/java/noppes/npcs/api/AbstractNpcAPI.java b/java/noppes/npcs/api/AbstractNpcAPI.java index 585ccf2..62523e4 100644 --- a/java/noppes/npcs/api/AbstractNpcAPI.java +++ b/java/noppes/npcs/api/AbstractNpcAPI.java @@ -183,6 +183,7 @@ public abstract class AbstractNpcAPI { /** * Get the auction handler for managing auctions via scripts. + * * @return The auction handler, or null if auctions are disabled */ public abstract IAuctionHandler getAuctions(); diff --git a/java/noppes/npcs/api/IWorld.java b/java/noppes/npcs/api/IWorld.java index ae01d2e..591b1e6 100644 --- a/java/noppes/npcs/api/IWorld.java +++ b/java/noppes/npcs/api/IWorld.java @@ -451,42 +451,46 @@ public interface IWorld { /** * Creates an energy orb projectile. Not spawned until fire() is called. + * * @param owner The entity that owns this projectile - * @param x Spawn X position - * @param y Spawn Y position - * @param z Spawn Z position - * @param size Orb size + * @param x Spawn X position + * @param y Spawn Y position + * @param z Spawn Z position + * @param size Orb size */ IEnergyOrb createEnergyOrb(IEntity owner, double x, double y, double z, float size); /** * Creates an energy beam projectile. Not spawned until fire() is called. - * @param owner The entity that owns this projectile - * @param x Spawn X position - * @param y Spawn Y position - * @param z Spawn Z position + * + * @param owner The entity that owns this projectile + * @param x Spawn X position + * @param y Spawn Y position + * @param z Spawn Z position * @param beamWidth Width of the beam - * @param headSize Size of the beam head + * @param headSize Size of the beam head */ IEnergyBeam createEnergyBeam(IEntity owner, double x, double y, double z, float beamWidth, float headSize); /** * Creates an energy disc projectile. Not spawned until fire() is called. - * @param owner The entity that owns this projectile - * @param x Spawn X position - * @param y Spawn Y position - * @param z Spawn Z position - * @param radius Disc radius + * + * @param owner The entity that owns this projectile + * @param x Spawn X position + * @param y Spawn Y position + * @param z Spawn Z position + * @param radius Disc radius * @param thickness Disc thickness */ IEnergyDisc createEnergyDisc(IEntity owner, double x, double y, double z, float radius, float thickness); /** * Creates an energy laser projectile. Not spawned until fire() is called. - * @param owner The entity that owns this projectile - * @param x Spawn X position - * @param y Spawn Y position - * @param z Spawn Z position + * + * @param owner The entity that owns this projectile + * @param x Spawn X position + * @param y Spawn Y position + * @param z Spawn Z position * @param laserWidth Width of the laser */ IEnergyLaser createEnergyLaser(IEntity owner, double x, double y, double z, float laserWidth); diff --git a/java/noppes/npcs/api/ability/IAbility.java b/java/noppes/npcs/api/ability/IAbility.java index bd43061..e66ab3f 100644 --- a/java/noppes/npcs/api/ability/IAbility.java +++ b/java/noppes/npcs/api/ability/IAbility.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/IDataAbilities.java b/java/noppes/npcs/api/ability/IDataAbilities.java index ca692b7..7e8b94f 100644 --- a/java/noppes/npcs/api/ability/IDataAbilities.java +++ b/java/noppes/npcs/api/ability/IDataAbilities.java @@ -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 */ diff --git a/java/noppes/npcs/api/ability/type/IAbilityCharge.java b/java/noppes/npcs/api/ability/type/IAbilityCharge.java index a388598..b864f4a 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityCharge.java +++ b/java/noppes/npcs/api/ability/type/IAbilityCharge.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityCutter.java b/java/noppes/npcs/api/ability/type/IAbilityCutter.java index bd83cfb..d451f27 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityCutter.java +++ b/java/noppes/npcs/api/ability/type/IAbilityCutter.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityDash.java b/java/noppes/npcs/api/ability/type/IAbilityDash.java index 486eb1f..81074b8 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityDash.java +++ b/java/noppes/npcs/api/ability/type/IAbilityDash.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityDisc.java b/java/noppes/npcs/api/ability/type/IAbilityDisc.java index 62567a6..807d410 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityDisc.java +++ b/java/noppes/npcs/api/ability/type/IAbilityDisc.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityEnergyBeam.java b/java/noppes/npcs/api/ability/type/IAbilityEnergyBeam.java index 42b0d23..ace857f 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityEnergyBeam.java +++ b/java/noppes/npcs/api/ability/type/IAbilityEnergyBeam.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityEnergyProjectile.java b/java/noppes/npcs/api/ability/type/IAbilityEnergyProjectile.java index f4793eb..9ebddc6 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityEnergyProjectile.java +++ b/java/noppes/npcs/api/ability/type/IAbilityEnergyProjectile.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityGuard.java b/java/noppes/npcs/api/ability/type/IAbilityGuard.java index 36fd7a8..bde5a1d 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityGuard.java +++ b/java/noppes/npcs/api/ability/type/IAbilityGuard.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityHazard.java b/java/noppes/npcs/api/ability/type/IAbilityHazard.java index b5118f2..a70900d 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityHazard.java +++ b/java/noppes/npcs/api/ability/type/IAbilityHazard.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityHeal.java b/java/noppes/npcs/api/ability/type/IAbilityHeal.java index e606e0b..994d813 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityHeal.java +++ b/java/noppes/npcs/api/ability/type/IAbilityHeal.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityHeavyHit.java b/java/noppes/npcs/api/ability/type/IAbilityHeavyHit.java index 467ec5b..711fec0 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityHeavyHit.java +++ b/java/noppes/npcs/api/ability/type/IAbilityHeavyHit.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityLaserShot.java b/java/noppes/npcs/api/ability/type/IAbilityLaserShot.java index 4f02983..fc9fc3b 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityLaserShot.java +++ b/java/noppes/npcs/api/ability/type/IAbilityLaserShot.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityOrb.java b/java/noppes/npcs/api/ability/type/IAbilityOrb.java index 2aa451a..9cbc606 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityOrb.java +++ b/java/noppes/npcs/api/ability/type/IAbilityOrb.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityProjectile.java b/java/noppes/npcs/api/ability/type/IAbilityProjectile.java index fc0eb32..c09f5f8 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityProjectile.java +++ b/java/noppes/npcs/api/ability/type/IAbilityProjectile.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityShockwave.java b/java/noppes/npcs/api/ability/type/IAbilityShockwave.java index 56634cd..93bc849 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityShockwave.java +++ b/java/noppes/npcs/api/ability/type/IAbilityShockwave.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilitySlam.java b/java/noppes/npcs/api/ability/type/IAbilitySlam.java index 164ffd2..9933cde 100644 --- a/java/noppes/npcs/api/ability/type/IAbilitySlam.java +++ b/java/noppes/npcs/api/ability/type/IAbilitySlam.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilitySweeper.java b/java/noppes/npcs/api/ability/type/IAbilitySweeper.java index 1502637..a04ba85 100644 --- a/java/noppes/npcs/api/ability/type/IAbilitySweeper.java +++ b/java/noppes/npcs/api/ability/type/IAbilitySweeper.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityTeleport.java b/java/noppes/npcs/api/ability/type/IAbilityTeleport.java index 74b9ef8..b0fe4e6 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityTeleport.java +++ b/java/noppes/npcs/api/ability/type/IAbilityTeleport.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityTrap.java b/java/noppes/npcs/api/ability/type/IAbilityTrap.java index 23ade92..9c1fc13 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityTrap.java +++ b/java/noppes/npcs/api/ability/type/IAbilityTrap.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityVortex.java b/java/noppes/npcs/api/ability/type/IAbilityVortex.java index 91fb6a8..b2ff165 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityVortex.java +++ b/java/noppes/npcs/api/ability/type/IAbilityVortex.java @@ -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); } diff --git a/java/noppes/npcs/api/ability/type/IAbilityZone.java b/java/noppes/npcs/api/ability/type/IAbilityZone.java index d66861a..2799539 100644 --- a/java/noppes/npcs/api/ability/type/IAbilityZone.java +++ b/java/noppes/npcs/api/ability/type/IAbilityZone.java @@ -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); } diff --git a/java/noppes/npcs/api/entity/ICustomNpc.java b/java/noppes/npcs/api/entity/ICustomNpc.java index 18ca698..1ca5c48 100644 --- a/java/noppes/npcs/api/entity/ICustomNpc.java +++ b/java/noppes/npcs/api/entity/ICustomNpc.java @@ -4,7 +4,6 @@ import net.minecraft.entity.EntityCreature; import noppes.npcs.api.IPos; import noppes.npcs.api.ITimers; import noppes.npcs.api.ability.IDataAbilities; -import noppes.npcs.api.entity.IEnergyProjectile; import noppes.npcs.api.entity.data.IModelData; import noppes.npcs.api.handler.IActionManager; import noppes.npcs.api.handler.IOverlayHandler; @@ -1519,6 +1518,7 @@ public interface ICustomNpc extends IEntityLiving, /** * Returns all active energy projectiles fired by this NPC. + * * @return Array of active energy projectiles, empty array if none */ IEnergyProjectile[] getActiveEnergyProjectiles(); diff --git a/java/noppes/npcs/api/entity/IEnergySlicer.java b/java/noppes/npcs/api/entity/IEnergySlicer.java index b3fec49..e03101a 100644 --- a/java/noppes/npcs/api/entity/IEnergySlicer.java +++ b/java/noppes/npcs/api/entity/IEnergySlicer.java @@ -8,11 +8,14 @@ import net.minecraft.entity.Entity; public interface IEnergySlicer extends IEnergyProjectile { float getSliceWidth(); + void setSliceWidth(float width); float getSliceThickness(); + void setSliceThickness(float thickness); boolean isPiercing(); + void setPiercing(boolean piercing); } diff --git a/java/noppes/npcs/api/entity/IPlayer.java b/java/noppes/npcs/api/entity/IPlayer.java index 765f013..328555a 100644 --- a/java/noppes/npcs/api/entity/IPlayer.java +++ b/java/noppes/npcs/api/entity/IPlayer.java @@ -9,7 +9,6 @@ import noppes.npcs.api.IPos; import noppes.npcs.api.IScreenSize; import noppes.npcs.api.ITimers; import noppes.npcs.api.IWorld; -import noppes.npcs.api.entity.IEnergyProjectile; import noppes.npcs.api.gui.ICustomGui; import noppes.npcs.api.handler.IActionManager; import noppes.npcs.api.handler.IOverlayHandler; @@ -756,6 +755,7 @@ public interface IPlayer extends IEntityLivingBase, /** * Returns all active energy projectiles fired by this player. + * * @return Array of active energy projectiles, empty array if none */ IEnergyProjectile[] getActiveEnergyProjectiles(); diff --git a/java/noppes/npcs/api/event/IAuctionEvent.java b/java/noppes/npcs/api/event/IAuctionEvent.java index 8da9c3e..a92875d 100644 --- a/java/noppes/npcs/api/event/IAuctionEvent.java +++ b/java/noppes/npcs/api/event/IAuctionEvent.java @@ -21,7 +21,9 @@ public interface IAuctionEvent extends IPlayerEvent { @Cancelable interface CreateEvent extends IAuctionEvent { IItemStack getItem(); + long getStartingPrice(); + long getBuyoutPrice(); } @@ -35,6 +37,7 @@ public interface IAuctionEvent extends IPlayerEvent { @Cancelable interface BidEvent extends IAuctionEvent { IAuctionListing getListing(); + long getBidAmount(); } @@ -59,6 +62,7 @@ public interface IAuctionEvent extends IPlayerEvent { @Cancelable interface CancelEvent extends IAuctionEvent { IAuctionListing getListing(); + boolean isAdmin(); } diff --git a/java/noppes/npcs/api/handler/IAuctionHandler.java b/java/noppes/npcs/api/handler/IAuctionHandler.java index eaf8816..8b00df9 100644 --- a/java/noppes/npcs/api/handler/IAuctionHandler.java +++ b/java/noppes/npcs/api/handler/IAuctionHandler.java @@ -22,6 +22,7 @@ public interface IAuctionHandler { /** * Get a specific listing by ID. + * * @param listingId The listing ID * @return The listing, or null if not found */ @@ -29,12 +30,14 @@ public interface IAuctionHandler { /** * Get all active listings by a specific seller. + * * @param sellerUUID The seller's UUID as a string */ IAuctionListing[] getListingsBySeller(String sellerUUID); /** * Get all listings where a player is the current high bidder. + * * @param bidderUUID The bidder's UUID as a string */ IAuctionListing[] getListingsByBidder(String bidderUUID); @@ -46,36 +49,40 @@ public interface IAuctionHandler { /** * Create a new listing. - * @param player The seller - * @param item The item to sell + * + * @param player The seller + * @param item The item to sell * @param startingPrice The starting bid price - * @param buyoutPrice The buyout price (0 for no buyout) + * @param buyoutPrice The buyout price (0 for no buyout) * @return The created listing, or null if failed */ IAuctionListing createListing(IPlayer player, IItemStack item, long startingPrice, long buyoutPrice); /** * Place a bid on a listing. + * * @param listingId The listing ID - * @param player The bidder - * @param amount The bid amount + * @param player The bidder + * @param amount The bid amount * @return null on success, error message on failure */ String placeBid(String listingId, IPlayer player, long amount); /** * Buyout a listing instantly. + * * @param listingId The listing ID - * @param player The buyer + * @param player The buyer * @return null on success, error message on failure */ String buyout(String listingId, IPlayer player); /** * Cancel a listing (seller only, unless admin). + * * @param listingId The listing ID - * @param player The player cancelling - * @param isAdmin Whether to bypass ownership check + * @param player The player cancelling + * @param isAdmin Whether to bypass ownership check * @return null on success, error message on failure */ String cancelListing(String listingId, IPlayer player, boolean isAdmin); @@ -117,6 +124,7 @@ public interface IAuctionHandler { /** * Search listings by item name or seller name. + * * @param searchText The search text * @return Matching active listings */ diff --git a/java/noppes/npcs/api/handler/IPlayerTradeData.java b/java/noppes/npcs/api/handler/IPlayerTradeData.java index a9b560c..ef8086e 100644 --- a/java/noppes/npcs/api/handler/IPlayerTradeData.java +++ b/java/noppes/npcs/api/handler/IPlayerTradeData.java @@ -84,6 +84,7 @@ public interface IPlayerTradeData { /** * Get a specific claim by ID. + * * @param claimId The claim ID * @return The claim, or null if not found */ diff --git a/java/noppes/npcs/api/handler/data/IAuctionClaim.java b/java/noppes/npcs/api/handler/data/IAuctionClaim.java index 8d7c3f1..92b0331 100644 --- a/java/noppes/npcs/api/handler/data/IAuctionClaim.java +++ b/java/noppes/npcs/api/handler/data/IAuctionClaim.java @@ -29,6 +29,7 @@ public interface IAuctionClaim { /** * Get the claim type. + * * @return 0 = Item, 1 = Currency (sale proceeds), 2 = Refund (outbid) */ int getType(); @@ -50,6 +51,7 @@ public interface IAuctionClaim { /** * Get the item to claim (for item claims only). + * * @return The item, or null for currency claims */ IItemStack getItem(); diff --git a/java/noppes/npcs/api/handler/data/IAuctionListing.java b/java/noppes/npcs/api/handler/data/IAuctionListing.java index 65e766e..a49496e 100644 --- a/java/noppes/npcs/api/handler/data/IAuctionListing.java +++ b/java/noppes/npcs/api/handler/data/IAuctionListing.java @@ -94,6 +94,7 @@ public interface IAuctionListing { /** * Get the auction status. + * * @return 0 = Active, 1 = Ended, 2 = Cancelled, 3 = Claimed */ int getStatus();