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 Vec3f
getProjectileLaunchVelocity(LivingEntity entity, Vec3d positionDelta, float multishotSpray)
LivingEntity
getTarget()
void
postShoot()
void
setCharging(boolean charging)
default void
shoot(LivingEntity entity, float speed)
default void
shoot(LivingEntity entity, LivingEntity target, ProjectileEntity projectile, float multishotSpray, float speed)
void
shoot(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)
-