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

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


  public void onWindowSetSlot(WindowSlotEvent event) {
    //TODO: investigate why this happens (12-1-2013)
    if (event.getItem() != null && event.getItem().getMaterial() == BlockMaterial.AIR) {
      return;
    }
    event.getMessages().add(new WindowSlotMessage(event.getWindow(), event.getSlot(), event.getItem()));
  }
View Full Code Here


  @Override
  public WindowSlotMessage decode(ByteBuf buffer) throws IOException {
    int id = buffer.readUnsignedByte();
    int slot = buffer.readUnsignedShort();
    ItemStack item = VanillaByteBufUtils.readItemStack(buffer);
    return new WindowSlotMessage(id, slot, item);
  }
View Full Code Here

TOP

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

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.