Package de.Keyle.MyPet.api.skill.skills
Interface Ranged
- All Superinterfaces:
Skill
Skill that enables the pet to perform ranged attacks by launching projectiles at
targets. The projectile type, rate of fire, and damage all scale with the pet's
skilltree level.
The pet will use ranged attacks instead of (or in addition to) melee when this skill is active and the target is within range.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumerates the projectile types the pet can fire with the Ranged skill. -
Method Summary
Modifier and TypeMethodDescriptionReturns the upgrade computer controlling the damage dealt per projectile.Returns the upgrade computer controlling the type of projectile launched.Returns the upgrade computer controlling the delay (in ticks) between consecutive shots.Methods inherited from interface de.Keyle.MyPet.api.skill.skilltree.Skill
applyState, getName, getName, getPet, getState, getUpgradeMessage, isActive, reset, toPrettyComponent
-
Method Details
-
getRateOfFire
UpgradeComputer<Integer> getRateOfFire()Returns the upgrade computer controlling the delay (in ticks) between consecutive shots.- Returns:
- the upgrade computer for the delay (in ticks) between consecutive shots
-
getDamage
UpgradeComputer<Number> getDamage()Returns the upgrade computer controlling the damage dealt per projectile.- Returns:
- the upgrade computer for the damage dealt per projectile
-
getProjectile
UpgradeComputer<Ranged.Projectile> getProjectile()Returns the upgrade computer controlling the type of projectile launched.- Returns:
- the upgrade computer for the type of projectile launched
-