Use non-deprecated constructors for unit testing DyeColor
Use non-deprecated call to EntityDamageEvent for /kill command
Hopper should implement Dispenser.class for MaterialData.

Adds #4764