if (output == null) {
continue;
}
ItemStack result = new ItemStack(((PotionReagent) input.getMaterial()).getResult((PotionItem) output.getMaterial()), 1);
PotionBrewEvent event = new PotionBrewEvent(this, new MaterialCause(output.getMaterial(), this.getBlock()), input, output, result);
VanillaPlugin.getInstance().getEngine().getEventManager().callEvent(event);
if (!event.isCancelled()) {
inventory.set(i, event.getResult());
}
}
}
}
setBrewTime(newBrewTime);