public void updateInterface() {
		ItemStack is = null;
		this.inventory.clear();
		if(this.sort_mode == DeckEditor.SORT_NUMBER) {
			Collections.sort(this.deck);
		} else if(this.sort_mode == DeckEditor.SORT_ABC) {
			Collections.sort(this.deck, DeckEditor.SORTER_ABC);
		} else if(this.sort_mode == DeckEditor.SORT_ATK) {
			Collections.sort(this.deck, DeckEditor.SORTER_ATK);
			Collections.reverse(this.deck);
		} else if(this.sort_mode == DeckEditor.SORT_DEF) {
			Collections.sort(this.deck, DeckEditor.SORTER_DEF);
			Collections.reverse(this.deck);
		} else if(this.sort_mode == DeckEditor.SORT_TYPE) {
			Collections.sort(this.deck);
			Collections.sort(this.deck, DeckEditor.SORTER_TYPE);
		} else if(this.sort_mode == DeckEditor.SORT_SHUFFLE) {
			Collections.shuffle(this.deck);
		}
		int p = 0;
		for(Integer card : this.deck) {
			is = new ItemStack(Material.PAPER);
			Duelist.createOwnedCardInfo(is, Card.fromId(card).copy());
			if(this.sort_mode == DeckEditor.SORT_SHUFFLE) {
				this.inventory.setItem(p, is);
				p++;
			} else {
				this.inventory.addItem(is);
			}
		}
		is = new ItemStack(Material.PAPER);
		Main.setItemName(is, "Sort by: " + DeckEditor.getSortName(this.sort_mode));
		Main.giveLore(is, 1);
		Main.setItemData(is, 0, "Click to change");
		this.inventory.setItem(44, is);
	}