Handle filled buckets dispensing up and down. Fixes BUKKIT-3814

Remapped by Srg2Source from Bukkit/CraftBukkit@09507556df5986e3274b2ab8e6033e4f25b2e896