    001package net.minecraft.dispenser;
    002
    003import net.minecraft.entity.IProjectile;
    004import net.minecraft.entity.projectile.EntityArrow;
    005import net.minecraft.server.MinecraftServer;
    006import net.minecraft.world.World;
    007
    008public class BehaviorArrowDispense extends BehaviorProjectileDispense
    009{
    010    /** Reference to the MinecraftServer object. */
    011    final MinecraftServer mcServer;
    012
    013    public BehaviorArrowDispense(MinecraftServer par1)
    014    {
    015        this.mcServer = par1;
    016    }
    017
    018    /**
    019     * Return the projectile entity spawned by this dispense behavior.
    020     */
    021    protected IProjectile getProjectileEntity(World par1World, IPosition par2IPosition)
    022    {
    023        EntityArrow var3 = new EntityArrow(par1World, par2IPosition.getX(), par2IPosition.getY(), par2IPosition.getZ());
    024        var3.canBePickedUp = 1;
    025        return var3;
    026    }
    027}