summaryrefslogtreecommitdiff
path: root/java/darkknight/jewelrycraft/container/GuiTabModifiers.java
blob: 6a0143d6a978888121112d64e48ccf2834fa0287 (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
48
49
50
package darkknight.jewelrycraft.container;

import java.util.ArrayList;

import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import darkknight.jewelrycraft.block.BlockList;
import darkknight.jewelrycraft.client.GuiGuide;
import darkknight.jewelrycraft.item.ItemList;

public class GuiTabModifiers extends GuiTab
{    
    public GuiTabModifiers(int id)
    {
        super("Modifiers", id);
    }
    
    public ItemStack getIcon()
    {
        return new ItemStack(Items.blaze_powder);
    }
    
    @Override
    public void drawBackground(GuiGuide gui, int x, int y, int page)
    {
        String text = "";
        int xPos = (page % 2 == 0) ? 107 : -35;
        switch (page)
        {
            case 1:
                text = "This is a test to see if the program works or not! And it does seem to be working. Yaaay! Thank God I made this. This is so much easier :D";
                Page.addImageTextPage(gui, gui.getLeft() + xPos, gui.getTop(), new ItemStack(Items.blaze_powder), text, 40f);
                break;
            default:;
        }
    }
    
    public int getMaxPages()
    {
        return 1;
    }
    
    @Override
    public void drawForeground(GuiGuide gui, int x, int y, int page)
    {
    }
    
}