Examples of useGas()


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

          }

          mc.thePlayer.fallDistance = 0.0F;
        }

        jetpack.useGas(mc.thePlayer.getEquipmentInSlot(3));
      }

      if(isGasMaskOn(mc.thePlayer))
      {
        ItemScubaTank tank = (ItemScubaTank)mc.thePlayer.getEquipmentInSlot(3).getItem();
View Full Code Here

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

      if(player instanceof EntityPlayerMP)
      {
        MekanismUtils.setPrivateValue(((EntityPlayerMP)player).playerNetServerHandler, 0, NetHandlerPlayServer.class, ObfuscatedNames.NetHandlerPlayServer_floatingTickCount);
      }

      jetpack.useGas(player.getEquipmentInSlot(3));
    }

    if(isGasMaskOn(player))
    {
      ItemScubaTank tank = (ItemScubaTank)player.getEquipmentInSlot(3).getItem();
View Full Code Here

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

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

    {
      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.