mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 05:34:44 +00:00
Reformat Code
This commit is contained in:
1 parent
ae4b84f3ba
commit
ca2980909e
32 files changed
+268
-36
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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<T extends EntityCreature> extends IEntityLiving<T>,
|
||||
|
||||
/**
|
||||
* Returns all active energy projectiles fired by this NPC.
|
||||
*
|
||||
* @return Array of active energy projectiles, empty array if none
|
||||
*/
|
||||
IEnergyProjectile[] getActiveEnergyProjectiles();
|
||||
|
||||
@@ -8,11 +8,14 @@ import net.minecraft.entity.Entity;
|
||||
public interface IEnergySlicer<T extends Entity> extends IEnergyProjectile<T> {
|
||||
|
||||
float getSliceWidth();
|
||||
|
||||
void setSliceWidth(float width);
|
||||
|
||||
float getSliceThickness();
|
||||
|
||||
void setSliceThickness(float thickness);
|
||||
|
||||
boolean isPiercing();
|
||||
|
||||
void setPiercing(boolean piercing);
|
||||
}
|
||||
@@ -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<T extends EntityPlayerMP> extends IEntityLivingBase<T>,
|
||||
|
||||
/**
|
||||
* Returns all active energy projectiles fired by this player.
|
||||
*
|
||||
* @return Array of active energy projectiles, empty array if none
|
||||
*/
|
||||
IEnergyProjectile[] getActiveEnergyProjectiles();
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -94,6 +94,7 @@ public interface IAuctionListing {
|
||||
|
||||
/**
|
||||
* Get the auction status.
|
||||
*
|
||||
* @return 0 = Active, 1 = Ended, 2 = Cancelled, 3 = Claimed
|
||||
*/
|
||||
int getStatus();
|
||||
|
||||
Reference in new issue
Block a user