public interface CrossbowUser extends RangedAttackMob
Modifier and Type | Method and Description |
---|---|
default Vector3f |
getProjectileLaunchVelocity(LivingEntity entity,
Vec3d positionDelta,
float multishotSpray) |
LivingEntity |
getTarget() |
void |
postShoot() |
void |
setCharging(boolean charging) |
default void |
shoot(LivingEntity entity,
float speed) |
void |
shoot(LivingEntity target,
ItemStack crossbow,
ProjectileEntity projectile,
float multiShotSpray) |
default void |
shoot(LivingEntity entity,
LivingEntity target,
ProjectileEntity projectile,
float multishotSpray,
float speed) |
attack
void setCharging(boolean charging)
void shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)
@Nullable LivingEntity getTarget()
void postShoot()
default void shoot(LivingEntity entity, float speed)
default void shoot(LivingEntity entity, LivingEntity target, ProjectileEntity projectile, float multishotSpray, float speed)
default Vector3f getProjectileLaunchVelocity(LivingEntity entity, Vec3d positionDelta, float multishotSpray)