Package mekanism.common.IRedstoneControl

Examples of mekanism.common.IRedstoneControl.RedstoneControl.ordinal()


    if(button == 0)
    {
      if(xAxis >= 179 && xAxis <= 197 && yAxis >= 142 && yAxis <= 160)
      {
        RedstoneControl current = control.getControlType();
        int ordinalToSet = current.ordinal() < (RedstoneControl.values().length-1) ? current.ordinal()+1 : 0;

        SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RedstoneControlMessage(Coord4D.get(tileEntity), RedstoneControl.values()[ordinalToSet]));
      }
    }
View Full Code Here


    if(button == 0)
    {
      if(xAxis >= 179 && xAxis <= 197 && yAxis >= 142 && yAxis <= 160)
      {
        RedstoneControl current = control.getControlType();
        int ordinalToSet = current.ordinal() < (RedstoneControl.values().length-1) ? current.ordinal()+1 : 0;

        SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RedstoneControlMessage(Coord4D.get(tileEntity), RedstoneControl.values()[ordinalToSet]));
      }
    }
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.