public class DefaultWindow extends Window {
private boolean opened = false;
public DefaultWindow(Player owner) {
super(owner, WindowType.DEFAULT, "Inventory", 9);
PlayerInventory inventory = getPlayerInventory();
addInventoryConverter(new InventoryConverter(inventory.getArmor(), "8, 7, 6, 5", new Vector2f[] {
Vector2f.ZERO, Vector2f.ZERO, Vector2f.ZERO, Vector2f.ZERO
}));
addInventoryConverter(new InventoryConverter(inventory.getCraftingGrid(), "3-4, 1-2, 0", new Vector2f[] {
Vector2f.ZERO, Vector2f.ZERO, Vector2f.ZERO, Vector2f.ZERO, Vector2f.ZERO
}));
}