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

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


    event.getMessages().add(new WindowItemsMessage(event.getWindow(), event.getItems()));
  }

  @EventHandler
  public void onWindowProperty(WindowPropertyEvent event) {
    event.getMessages().add(new WindowPropertyMessage(event.getWindow(), event.getId(), event.getValue()));
  }
View Full Code Here


  @Override
  public WindowPropertyMessage decode(ByteBuf buffer) throws IOException {
    int id = buffer.readUnsignedByte();
    int progressBar = buffer.readUnsignedShort();
    int value = buffer.readUnsignedShort();
    return new WindowPropertyMessage(id, progressBar, value);
  }
View Full Code Here

TOP

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

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.