I'm not sure how this is working, as you're not currently extending CraftDispenser.  Additionally, the // CraftBukkit comment isn't needed as this is part of CraftBukkit and not net.minecraft.server