Examples of PacketMGFire


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

Examples of com.flansmod.common.network.PacketMGFire

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