Package org.spout.vanilla.inventory.window

Examples of org.spout.vanilla.inventory.window.WindowType


  @CommandDescription (aliases = "window", usage = "<type>", desc = "Open a window.")
  @Permissible ("vanilla.command.debug")
  @Filter (PlayerFilter.class)
  public void window(Player player, CommandArguments args) throws CommandException {
    WindowType type = args.popEnumValue("type", WindowType.class);
    args.assertCompletelyParsed();

    switch (type) {
      case CHEST:
        player.get(WindowHolder.class).openWindow(new ChestWindow(player, new Chest()));
View Full Code Here


  }

  @Override
  public WindowOpenMessage decode(ByteBuf buffer) throws IOException {
    int id = buffer.readUnsignedByte();
    WindowType type = WindowType.get(buffer.readUnsignedByte());
    if (type == null) {
      throw new IOException("Read Window Type is invalid");
    }
    String title = VanillaByteBufUtils.readString(buffer);
    int slots = buffer.readUnsignedByte();
View Full Code Here

TOP

Related Classes of org.spout.vanilla.inventory.window.WindowType

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.