}
// Try to light the furnace
if (inventory.hasFuel() && inventory.hasIngredient()) {
float newFuel = ((Fuel) inventory.getFuel().getMaterial()).getFuelTime();
FurnaceBurnEvent event = VanillaPlugin.getInstance().getEngine().getEventManager().callEvent(new FurnaceBurnEvent(this, inventory.getFuel(), newFuel));
if (event.isCancelled()) {
return;
}
newFuel = event.getBurnTime();
setMaxFuel(newFuel);
setFuel(newFuel);
inventory.addAmount(FurnaceInventory.FUEL_SLOT, -1);
setBurning(true);
return;