Package org.spout.vanilla.event.material

Examples of org.spout.vanilla.event.material.FurnaceBurnEvent


      }

      // 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;
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.material.FurnaceBurnEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.