    001    package net.minecraft.src;
    002
    003    public abstract class BehaviorProjectileDispense extends BehaviorDefaultDispenseItem
    004    {
    005        public ItemStack func_82487_b(IBlockSource par1IBlockSource, ItemStack par2ItemStack)
    006        {
    007            World var3 = par1IBlockSource.func_82618_k();
    008            IPosition var4 = BlockDispenser.func_82525_a(par1IBlockSource);
    009            EnumFacing var5 = EnumFacing.func_82600_a(par1IBlockSource.func_82620_h());
    010            IProjectile var6 = this.func_82499_a(var3, var4);
    011            var6.setThrowableHeading((double)var5.func_82601_c(), 0.10000000149011612D, (double)var5.func_82599_e(), this.func_82500_b(), this.func_82498_a());
    012            var3.spawnEntityInWorld((Entity)var6);
    013            par2ItemStack.splitStack(1);
    014            return par2ItemStack;
    015        }
    016
    017        protected void func_82485_a(IBlockSource par1IBlockSource)
    018        {
    019            par1IBlockSource.func_82618_k().playAuxSFX(1002, par1IBlockSource.func_82623_d(), par1IBlockSource.func_82622_e(), par1IBlockSource.func_82621_f(), 0);
    020        }
    021
    022        protected abstract IProjectile func_82499_a(World var1, IPosition var2);
    023
    024        protected float func_82498_a()
    025        {
    026            return 6.0F;
    027        }
    028
    029        protected float func_82500_b()
    030        {
    031            return 1.1F;
    032        }
    033    }