Implement Hopper block state and inventory methods. Adds BUKKIT-3749

Remapped by Srg2Source from http://github.com/Bukkit/CraftBukkit/commit/d7c4f896e8450da2baa0b1c4fdb4279fe3b9b998