Package mekanism.common.item

Examples of mekanism.common.item.ItemScubaTank.useGas()


      {
        ItemScubaTank tank = (ItemScubaTank)mc.thePlayer.getEquipmentInSlot(3).getItem();

        final int max = 300;
       
        tank.useGas(mc.thePlayer.getEquipmentInSlot(3));
        GasStack received = tank.removeGas(mc.thePlayer.getEquipmentInSlot(3), max-mc.thePlayer.getAir());
       
        if(received != null)
        {
          mc.thePlayer.setAir(mc.thePlayer.getAir()+received.amount);
View Full Code Here


    {
      ItemScubaTank tank = (ItemScubaTank)player.getEquipmentInSlot(3).getItem();

      final int max = 300;
     
      tank.useGas(player.getEquipmentInSlot(3));
      GasStack received = tank.removeGas(player.getEquipmentInSlot(3), max-player.getAir());
     
      if(received != null)
      {
        player.setAir(player.getAir()+received.amount);
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.