Interface RangedAttackGoal.ProjectileGenerator
- Enclosing class:
RangedAttackGoal
public static interface RangedAttackGoal.ProjectileGenerator
The function used to generate a projectile.
-
Method Summary
Modifier and TypeMethodDescriptionvoidshootProjectile(EntityCreature shooter, net.minestom.server.coordinate.Pos target, double power, double spread) Shoots a projectile.
-
Method Details
-
shootProjectile
void shootProjectile(EntityCreature shooter, net.minestom.server.coordinate.Pos target, double power, double spread) Shoots a projectile.- Parameters:
shooter- the shooter.target- the target position.power- the shot power.spread- the shot spread.
-