Examples of MoistenerFuel


Examples of forestry.api.fuels.MoistenerFuel

        .getGameMode().getIntegerSetting("fermenter.value.compost"), GameMode.getGameMode().getIntegerSetting("fermenter.cycles.compost")));
    FuelManager.fermenterFuel.put(ForestryItem.mulch.getItemStack(), new FermenterFuel(ForestryItem.mulch.getItemStack(), GameMode.getGameMode()
        .getIntegerSetting("fermenter.value.compost"), GameMode.getGameMode().getIntegerSetting("fermenter.cycles.compost")));

    // Add moistener resources
    FuelManager.moistenerResource.put(new ItemStack(Items.wheat), new MoistenerFuel(new ItemStack(Items.wheat), ForestryItem.mouldyWheat.getItemStack(), 0,
        300));
    FuelManager.moistenerResource.put(ForestryItem.mouldyWheat.getItemStack(), new MoistenerFuel(ForestryItem.mouldyWheat.getItemStack(), ForestryItem.decayingWheat.getItemStack(), 1, 600));
    FuelManager.moistenerResource.put(ForestryItem.decayingWheat.getItemStack(), new MoistenerFuel(ForestryItem.decayingWheat.getItemStack(),
        ForestryItem.mulch.getItemStack(), 2, 900));

    // Set fuels for our own engines
    FuelManager.copperEngineFuel.put(ForestryItem.peat.getItemStack(), new EngineCopperFuel(ForestryItem.peat.getItemStack(),
        Defaults.ENGINE_COPPER_FUEL_VALUE_PEAT, Defaults.ENGINE_COPPER_CYCLE_DURATION_PEAT));
View Full Code Here

Examples of forestry.api.fuels.MoistenerFuel

        // Let's see if we have a valid resource in the working slot
        if (inventory.getStackInSlot(SLOT_WORKING) == null)
          return;

        if (FuelManager.moistenerResource.containsKey(inventory.getStackInSlot(SLOT_WORKING))) {
          MoistenerFuel res = FuelManager.moistenerResource.get(inventory.getStackInSlot(SLOT_WORKING));
          burnTime = totalTime = res.moistenerValue;
        }
      } else
        rotateReservoir();
View Full Code Here

Examples of forestry.api.fuels.MoistenerFuel

        continue;

      if (!FuelManager.moistenerResource.containsKey(slotStack))
        continue;

      MoistenerFuel res = FuelManager.moistenerResource.get(slotStack);
      if (stage < 0 || res.stage < stage) {
        stage = res.stage;
        resourceSlot = i;
      }
    }
View Full Code Here

Examples of forestry.api.fuels.MoistenerFuel

    // Put working slot contents into inventory if space is available
    if (inventory.getStackInSlot(SLOT_WORKING) != null) {
      // Get the result of the consumed item in the working slot
      ItemStack deposit;
      if (FuelManager.moistenerResource.containsKey(inventory.getStackInSlot(SLOT_WORKING))) {
        MoistenerFuel res = FuelManager.moistenerResource.get(inventory.getStackInSlot(SLOT_WORKING));
        deposit = res.product.copy();
      } else
        deposit = inventory.getStackInSlot(SLOT_WORKING).copy();

      int targetSlot = getFreeReservoirSlot(deposit);
View Full Code Here

Examples of forestry.api.fuels.MoistenerFuel

      if (inventory.getStackInSlot(i) == null) {
        max += 64;
        continue;
      }
      if (FuelManager.moistenerResource.containsKey(inventory.getStackInSlot(i))) {
        MoistenerFuel res = FuelManager.moistenerResource.get(inventory.getStackInSlot(i));
        if (res.item.isItemEqual(inventory.getStackInSlot(i))) {
          max += 64;
          avail += inventory.getStackInSlot(i).stackSize;
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.