[Branch] LivingEntity.launchProjectile

Discussion in 'Bukkit Preview' started by aPunch, Feb 17, 2012.

  1. Offline

    aPunch

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    LivingEntity.launchProjectile(Class<? extends Projectile>) has replaced the previous methods of throwSnowball, throwEgg, and shootArrow. It provides for one central method to use in order to deploy Projectiles from a LivingEntity. Use the following methods in place of the old ones:
    • shootArrow --> launchProjectile(Arrow.class)
    • throwEgg --> launchProjectile(Egg.class)
    • throwSnowball --> launchProjectile(Snowball.class)
    The old methods have been deprecated, so update your plugins as soon as possible.
     

Share This Page