Package org.spout.vanilla.inventory.util

Examples of org.spout.vanilla.inventory.util.GridInventoryConverter


  public Window(Player owner, WindowType type, String title, int offset) {
    super(owner, type, title, offset);

    PlayerInventory inventory = getPlayerInventory();
    GridInventoryConverter main = new GridInventoryConverter(inventory.getMain(), 9, offset, MAIN_POSITION);
    addInventoryConverter(main);
    addInventoryConverter(new GridInventoryConverter(inventory.getQuickbar(), 9, offset + main.getGrid().getSize(), QUICKBAR_POSITION));

    switch (VanillaPlugin.getInstance().getEngine().getPlatform()) {
      case PROXY:
      case SERVER:
        background = label = null;
View Full Code Here


    this(owner, inventory, "Hopper");
  }

  public HopperWindow(Player owner, HopperInventory inventory, String title) {
    super(owner, WindowType.HOPPER, title, 5);
    addInventoryConverter(new GridInventoryConverter(inventory, 5, Vector2f.ZERO));
  }
View Full Code Here

    this(owner, inventory, "Dropper");
  }

  public DropperWindow(Player owner, DropperInventory inventory, String title) {
    super(owner, WindowType.DROPPER, title, 9);
    addInventoryConverter(new GridInventoryConverter(inventory, 3, Vector2f.ZERO));
  }
View Full Code Here

import org.spout.vanilla.inventory.window.WindowType;

public class EnderChestWindow extends AbstractChestWindow {
  public EnderChestWindow(Player owner, EnderChest chest, Inventory inventory) {
    super(owner, chest, WindowType.CHEST, "Ender chest", inventory.size());
    addInventoryConverter(new GridInventoryConverter(inventory, 9, Vector2f.ZERO));
  }
View Full Code Here

import org.spout.vanilla.inventory.window.WindowType;

public class ChestWindow extends AbstractChestWindow {
  public ChestWindow(Player owner, Chest chest) {
    super(owner, chest, WindowType.CHEST, chest.getLargestInventory().getTitle(), chest.getLargestInventory().size());
    addInventoryConverter(new GridInventoryConverter(chest.getLargestInventory(), 9, Vector2f.ZERO));
  }
View Full Code Here

    addInventoryConverter(new GridInventoryConverter(chest.getLargestInventory(), 9, Vector2f.ZERO));
  }

  public ChestWindow(Player owner, ChestInventory inv, String title) {
    super(owner, WindowType.CHEST, title, inv.size());
    addInventoryConverter(new GridInventoryConverter(inv, 9, Vector2f.ZERO));
  }
View Full Code Here

    this(owner, inventory, "Dispenser");
  }

  public DispenserWindow(Player owner, DispenserInventory inventory, String title) {
    super(owner, WindowType.DISPENSER, title, 9);
    addInventoryConverter(new GridInventoryConverter(inventory, 3, Vector2f.ZERO));
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.inventory.util.GridInventoryConverter

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.