summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/CreativeTabLiquids.java
blob: e272b5197b1dc08bf11497a0d0d133d6a57b36df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package darkknight.jewelrycraft;

import java.util.List;

import darkknight.jewelrycraft.item.ItemList;
import darkknight.jewelrycraft.util.JewelrycraftUtil;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

/**
 * The Class CreativeTabLiquids.
 */
public class CreativeTabLiquids extends CreativeTabs {
	/**
	 * Instantiates a new creative tab liquids.
	 *
	 * @param name
	 *                the name
	 */
	public CreativeTabLiquids(String name) {
		super(name);
	}

	@Override
	public boolean hasSearchBar() {
		return true;
	}

	/**
	 * @return the Item for the icon
	 */
	@Override
	public Item getTabIconItem() {
		return ItemList.bucket;
	}

	/**
	 * @param list
	 *                List of items to display
	 */
	@Override
	public void displayAllReleventItems(List list) {
		for (int i = 0; i < JewelrycraftUtil.objects.size(); i++)
			list.add(ItemList.bucket.getModifiedItemStack(
					JewelrycraftUtil.objects.get(i)));
	}
}