Package com.flansmod.common.network

Examples of com.flansmod.common.network.PacketMGFire


  @SideOnly(Side.CLIENT)
  private void checkForShooting()
  {
    if(Mouse.isButtonDown(0) && !wasShooting && !FlansMod.proxy.isScreenOpen())
    {
      FlansMod.getPacketHandler().sendToServer(new PacketMGFire(true));
      wasShooting = true;
    }
    else if(!Mouse.isButtonDown(0) && wasShooting)
    {
      FlansMod.getPacketHandler().sendToServer(new PacketMGFire(false));
      wasShooting = false;
    }
  }
View Full Code Here


  private void checkForShooting()
  {
    //Send a packet!
    if(Mouse.isButtonDown(0) && !wasShooting && !FlansMod.proxy.isScreenOpen())
    {
      FlansMod.getPacketHandler().sendToServer(new PacketMGFire(true));
      wasShooting = true;
    }
    else if(!Mouse.isButtonDown(0) && wasShooting)
    {
      FlansMod.getPacketHandler().sendToServer(new PacketMGFire(false));
      wasShooting = false;
    }
  }
View Full Code Here

TOP

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

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.