Package net.lightstone.msg

Examples of net.lightstone.msg.SetWindowSlotMessage


  public SetWindowSlotMessage decode(ChannelBuffer buffer) throws IOException {
    int id = buffer.readUnsignedByte();
    int slot = buffer.readUnsignedShort();
    int item = buffer.readUnsignedShort();
    if (item == 0xFFFF) {
      return new SetWindowSlotMessage(id, slot);
    } else {
      int count = buffer.readUnsignedByte();
      int damage = buffer.readUnsignedByte();
      return new SetWindowSlotMessage(id, slot, item, count, damage);
    }
  }
View Full Code Here

TOP

Related Classes of net.lightstone.msg.SetWindowSlotMessage

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.