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

Remapped by Srg2Source from Bukkit/CraftBukkit@d7c4f896e8450da2baa0b1c4fdb4279fe3b9b998