Search in sources :

Example 1 with GuiKnapping

use of net.dries007.tfc.client.gui.GuiKnapping in project firmalife by eerussianguy.

the class FLGuiHandler method getClientGuiElement.

@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
    Container container = getServerGuiElement(ID, player, world, x, y, z);
    Type type = Type.valueOf(ID);
    switch(type) {
        case KNAPPING_PUMPKIN:
            return new GuiKnapping(container, player, KnappingType.LEATHER, PUMPKIN_TEXTURE);
        default:
            return null;
    }
}
Also used : Container(net.minecraft.inventory.Container) KnappingType(net.dries007.tfc.api.recipes.knapping.KnappingType) GuiKnapping(net.dries007.tfc.client.gui.GuiKnapping)

Aggregations

KnappingType (net.dries007.tfc.api.recipes.knapping.KnappingType)1 GuiKnapping (net.dries007.tfc.client.gui.GuiKnapping)1 Container (net.minecraft.inventory.Container)1