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

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


    if (event.getWindow() instanceof DefaultWindow) {
      return;
    }
    PlayerInventory inventory = event.getWindow().getPlayerInventory();
    int size = event.getWindow().getSize() - (inventory.getMain().size() + inventory.getQuickbar().size());
    event.getMessages().add(new WindowOpenMessage(event.getWindow(), size));
  }
View Full Code Here


      throw new IOException("Read Window Type is invalid");
    }
    String title = VanillaByteBufUtils.readString(buffer);
    int slots = buffer.readUnsignedByte();
    boolean useTitle = buffer.readUnsignedByte() != 0;
    return new WindowOpenMessage(id, type, title, slots, useTitle);
  }
View Full Code Here

TOP

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

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.