Package com.flansmod.common.network

Examples of com.flansmod.common.network.PacketSelectOffHandGun


        //If the player is no longer holding a gun, emulate a release of the shoot button
        if(player.inventory.getCurrentItem() == null || player.inventory.getCurrentItem().getItem() == null || !(player.inventory.getCurrentItem().getItem() instanceof ItemGun))
        {
          data.isShootingRight = data.isShootingLeft = false;
          data.offHandGunSlot = 0;
          (new PacketSelectOffHandGun(0)).handleServerSide(player);
        }
        return;
      }
     
      //Right hand gun
View Full Code Here


    else if(dWheel > 0)
      for(offHandGunSlot = ((offHandGunSlot + 9) % 10); !isValidOffHandWeapon(player, offHandGunSlot); offHandGunSlot = ((offHandGunSlot + 9) % 10)) ;
   
    FlansModClient.currentScope = null;
   
    FlansMod.getPacketHandler().sendToServer(new PacketSelectOffHandGun(offHandGunSlot));
  }
View Full Code Here

TOP

Related Classes of com.flansmod.common.network.PacketSelectOffHandGun

Copyright © 2018 www.massapicom. 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.