Examples of DigitUpdateMessage


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