}
@Override
public boolean doAction(Dispenser dis, ItemStack item, Vector velocity, BlockDispenseEvent event) {
MaterialData d = dis.getBlock().getState().getData();
BlockFace face = ((org.bukkit.material.Dispenser) d).getFacing();
Location dispenserLoc = dis.getBlock().getRelative(face).getLocation();
for (Entity e : dis.getWorld().getChunkAt(dispenserLoc).getEntities()) {
if (EntityUtil.isEntityInBlock(e, dispenserLoc.getBlock())) {
Vector dir = new Vector(((DirectionalContainer) dis.getData()).getFacing().getModX(),((DirectionalContainer) dis.getData()).getFacing().getModY(),((DirectionalContainer) dis.getData()).getFacing().getModZ());