Package net.minecraft.entity
Interface CrossbowUser
- All Superinterfaces:
RangedAttackMob
- All Known Implementing Classes:
PiglinEntity,PillagerEntity
public interface CrossbowUser extends RangedAttackMob
-
Method Summary
Modifier and Type Method Description default Vec3fgetProjectileLaunchVelocity(LivingEntity entity, Vec3d positionDelta, float multishotSpray)LivingEntitygetTarget()voidpostShoot()voidsetCharging(boolean charging)default voidshoot(LivingEntity entity, float speed)default voidshoot(LivingEntity entity, LivingEntity target, ProjectileEntity projectile, float multishotSpray, float speed)voidshoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)Methods inherited from interface net.minecraft.entity.ai.RangedAttackMob
attack
-
Method Details
-
setCharging
void setCharging(boolean charging) -
shoot
void shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray) -
getTarget
-
postShoot
void postShoot() -
shoot
-
shoot
default void shoot(LivingEntity entity, LivingEntity target, ProjectileEntity projectile, float multishotSpray, float speed) -
getProjectileLaunchVelocity
default Vec3f getProjectileLaunchVelocity(LivingEntity entity, Vec3d positionDelta, float multishotSpray)
-