Package mekanism.common.network.PacketDigitUpdate

Examples of mekanism.common.network.PacketDigitUpdate.DigitUpdateMessage


  {
    if(xAxis > xmin && xAxis < xmax && yAxis > ymin && yAxis < ymax)
    {
      int currentDigit = ((ItemPortableTeleporter)itemStack.getItem()).getDigit(itemStack, clickedButtonIndex);
      int updatedDigit = getUpdatedNumber(currentDigit, mouseButton);
      Mekanism.packetHandler.sendToServer(new DigitUpdateMessage(clickedButtonIndex, updatedDigit));
      ((ItemPortableTeleporter)itemStack.getItem()).setDigit(itemStack, clickedButtonIndex, updatedDigit);
      SoundHandler.playSound("gui.button.press");
    }
  }
View Full Code Here

TOP

Related Classes of mekanism.common.network.PacketDigitUpdate.DigitUpdateMessage

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.