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

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


    event.getMessages().add(new WindowSlotMessage(event.getWindow(), event.getSlot(), event.getItem()));
  }

  @EventHandler
  public void onWindowItems(WindowItemsEvent event) {
    event.getMessages().add(new WindowItemsMessage(event.getWindow(), event.getItems()));
  }
View Full Code Here


    short count = buffer.readShort();
    ItemStack[] items = new ItemStack[count];
    for (int slot = 0; slot < count; slot++) {
      items[slot] = VanillaByteBufUtils.readItemStack(buffer);
    }
    return new WindowItemsMessage(id, items);
  }
View Full Code Here

TOP

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

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.