Make CraftMinecartHopper work as InventoryHolder. Adds BUKKIT-3796

Remapped by Srg2Source from Bukkit/CraftBukkit@283ba0bfa5afc61c31cf810f44571ea0e7d9840c