Examples of numEngines()


Examples of com.flansmod.common.driveables.DriveableType.numEngines()

      drawString(fontRendererObj, recipeName , guiOriginX + 82, guiOriginY + 64, 0xffffff);
      drawString(fontRendererObj, "Cargo Slots : " + selectedType.numCargoSlots, guiOriginX + 82, guiOriginY + 74, 0xffffff);
      drawString(fontRendererObj, "Bomb Slots : " + selectedType.numBombSlots, guiOriginX + 82, guiOriginY + 84, 0xffffff);
      drawString(fontRendererObj, "Passengers : " + selectedType.numPassengers, guiOriginX + 82, guiOriginY + 94, 0xffffff);
      drawString(fontRendererObj, "Guns : " + (selectedType.ammoSlots()), guiOriginX + 82, guiOriginY + 104, 0xffffff);
      drawString(fontRendererObj, selectedType.numEngines() + "x", guiOriginX + 100, guiOriginY + 141, 0xffffff);
     
      //Create a temporary copy of the player inventory in order to work out whether the player has each of the itemstacks required
      InventoryPlayer temporaryInventory = new InventoryPlayer(null);
      temporaryInventory.copyInventory(inventory);
     
View Full Code Here

Examples of com.flansmod.common.driveables.DriveableType.numEngines()

      float bestEngineSpeed = -1F;
      ItemStack bestEngineStack = null;
      for(PartType part : engines.keySet())
      {
        //If this engine outperforms the currently selected best one and there are enough of them, swap
        if(part.engineSpeed > bestEngineSpeed && engines.get(part).stackSize >= selectedType.numEngines())
        {
          bestEngineSpeed = part.engineSpeed;
          bestEngineStack = engines.get(part);
        }
      }
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.