Package org.spout.vanilla.protocol.msg.window

Examples of org.spout.vanilla.protocol.msg.window.WindowTransactionMessage


    int slot = message.getSlot();
    ClickArguments args = window.getClickArguments(slot, ClickArguments.ClickAction.getAction(message.getMode(), message.getButton()));
    if (args != null) {
      result = window.onClick(args);
    }
    session.send(new WindowTransactionMessage(window, message.getTransaction(), result));
  }
View Full Code Here


  @Override
  public WindowTransactionMessage decode(ByteBuf buffer) throws IOException {
    int id = buffer.readUnsignedByte();
    int transaction = buffer.readUnsignedShort();
    boolean accepted = buffer.readUnsignedByte() != 0;
    return new WindowTransactionMessage(id, transaction, accepted);
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.window.WindowTransactionMessage

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.