Package crazypants.enderio.conduit.packet

Examples of crazypants.enderio.conduit.packet.PacketConnectionMode


  @Override
  public void actionPerformed(GuiButton guiButton) {
    if(guiButton.id == PREV_MODE_B) {
      con.setConnectionMode(gui.getDir(), con.getPreviousConnectionMode(gui.getDir()));
      PacketHandler.INSTANCE.sendToServer(new PacketConnectionMode(con, gui.getDir()));
      connectionModeChanged(con.getConnectionMode(gui.getDir()));

    } else if(guiButton.id == NEXT_MODE_B) {
      con.setConnectionMode(gui.getDir(), con.getNextConnectionMode(gui.getDir()));
      PacketHandler.INSTANCE.sendToServer(new PacketConnectionMode(con, gui.getDir()));
      connectionModeChanged(con.getConnectionMode(gui.getDir()));
    }
  }
View Full Code Here

TOP

Related Classes of crazypants.enderio.conduit.packet.PacketConnectionMode

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.