Include anvil result in inventory size. Fixes BUKKIT-3741

Remapped by Srg2Source from Bukkit/CraftBukkit@b08af0283e12ed0fefc56c219e5c16134a0bc7ba