Examples of ammoSlots()


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

    cargoButton.enabled = type.numCargoSlots > 0;
    buttonList.add(cargoButton);
   
    //Gun button
    GuiButton gunsButton = new GuiButton(1, width / 2 + 2, height / 2 - 71, 58, 20, "Guns");
    gunsButton.enabled = type.ammoSlots() > 0;
    buttonList.add(gunsButton);
   
    //Fuel button
    GuiButton fuelButton = new GuiButton(2, width / 2 -60, height / 2 - 49, 58, 20, "Fuel");
    fuelButton.enabled = type.fuelTankSize > 0;
View Full Code Here

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

      //Render the info text alongside the driveable
      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
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.