Validate method parameters when registering events. Fixes BUKKIT-3779
Add Hopper block state and inventory type. Adds BUKKIT-3749
Don't use deprecated interface.