Package mekanism.common.network.PacketRobit

Examples of mekanism.common.network.PacketRobit.RobitMessage


      int yAxis = (mouseY - (height - ySize) / 2);

      if(xAxis >= 179 && xAxis <= 197 && yAxis >= 10 && yAxis <= 28)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 0, entityId, null));
        mc.thePlayer.openGui(Mekanism.instance, 21, mc.theWorld, entityId, 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 30 && yAxis <= 48)
      {
                SoundHandler.playSound("gui.button.press");
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 50 && yAxis <= 68)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 2, entityId, null));
        mc.thePlayer.openGui(Mekanism.instance, 23, mc.theWorld, entityId, 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 70 && yAxis <= 88)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 3, entityId, null));
        mc.thePlayer.openGui(Mekanism.instance, 24, mc.theWorld, entityId, 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 90 && yAxis <= 108)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 4, entityId, null));
        mc.thePlayer.openGui(Mekanism.instance, 25, mc.theWorld, entityId, 0, 0);
      }
    }
  }
View Full Code Here


  private void changeName()
  {
    if(nameChangeField.getText() != null && !nameChangeField.getText().isEmpty())
    {
      Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.NAME, robit.getEntityId(), 0, nameChangeField.getText()));
      toggleNameChange();
      nameChangeField.setText("");
    }
  }
View Full Code Here

                SoundHandler.playSound("gui.button.press");
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 30 && yAxis <= 48)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 1, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 22, mc.theWorld, robit.getEntityId(), 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 50 && yAxis <= 68)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 2, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 23, mc.theWorld, robit.getEntityId(), 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 70 && yAxis <= 88)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 3, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 24, mc.theWorld, robit.getEntityId(), 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 90 && yAxis <= 108)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 4, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 25, mc.theWorld, robit.getEntityId(), 0, 0);
      }
      else if(xAxis >= 152 && xAxis <= 170 && yAxis >= 54 && yAxis <= 72)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.FOLLOW, robit.getEntityId(), 0, null));
      }
      else if(xAxis >= 6 && xAxis <= 24 && yAxis >= 54 && yAxis <= 72)
      {
                SoundHandler.playSound("gui.button.press");
        toggleNameChange();
      }
      else if(xAxis >= 6 && xAxis <= 24 && yAxis >= 16 && yAxis <= 34)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GO_HOME, robit.getEntityId(), 0, null));
        mc.displayGuiScreen(null);
      }
      else if(xAxis >= 6 && xAxis <= 24 && yAxis >= 35 && yAxis <= 53)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.DROP_PICKUP, robit.getEntityId(), 0, null));
      }
    }
  }
View Full Code Here

      int yAxis = (mouseY - (height - ySize) / 2);

      if(xAxis >= 179 && xAxis <= 197 && yAxis >= 10 && yAxis <= 28)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 0, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 21, mc.theWorld, robit.getEntityId(), 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 30 && yAxis <= 48)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 1, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 22, mc.theWorld, robit.getEntityId(), 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 50 && yAxis <= 68)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 2, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 23, mc.theWorld, robit.getEntityId(), 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 70 && yAxis <= 88)
      {
                SoundHandler.playSound("gui.button.press");
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 90 && yAxis <= 108)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 4, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 25, mc.theWorld, robit.getEntityId(), 0, 0);
      }
    }
  }
View Full Code Here

      int yAxis = (mouseY - (height - ySize) / 2);

      if(xAxis >= 179 && xAxis <= 197 && yAxis >= 10 && yAxis <= 28)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 0, entityId, null));
        mc.thePlayer.openGui(Mekanism.instance, 21, mc.theWorld, entityId, 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 30 && yAxis <= 48)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 1, entityId, null));
        mc.thePlayer.openGui(Mekanism.instance, 22, mc.theWorld, entityId, 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 50 && yAxis <= 68)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 2, entityId, null));
        mc.thePlayer.openGui(Mekanism.instance, 23, mc.theWorld, entityId, 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 70 && yAxis <= 88)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 3, entityId, null));
        mc.thePlayer.openGui(Mekanism.instance, 24, mc.theWorld, entityId, 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 90 && yAxis <= 108)
      {
                SoundHandler.playSound("gui.button.press");
View Full Code Here

      int yAxis = (mouseY - (height - ySize) / 2);

      if(xAxis >= 179 && xAxis <= 197 && yAxis >= 10 && yAxis <= 28)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 0, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 21, mc.theWorld, robit.getEntityId(), 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 30 && yAxis <= 48)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 1, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 22, mc.theWorld, robit.getEntityId(), 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 50 && yAxis <= 68)
      {
                SoundHandler.playSound("gui.button.press");
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 70 && yAxis <= 88)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 3, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 24, mc.theWorld, robit.getEntityId(), 0, 0);
      }
      else if(xAxis >= 179 && xAxis <= 197 && yAxis >= 90 && yAxis <= 108)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RobitMessage(RobitPacketType.GUI, 4, robit.getEntityId(), null));
        mc.thePlayer.openGui(Mekanism.instance, 25, mc.theWorld, robit.getEntityId(), 0, 0);
      }
    }
  }
View Full Code Here

TOP

Related Classes of mekanism.common.network.PacketRobit.RobitMessage

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.