Search in sources :

Example 1 with EnumFlowerColor

use of binnie.botany.api.genetics.EnumFlowerColor in project Binnie by ForestryMC.

the class BlockCeramicBrick method getSubBlocks.

@Override
public void getSubBlocks(CreativeTabs tab, NonNullList<ItemStack> itemList) {
    for (EnumFlowerColor color : EnumFlowerColor.values()) {
        itemList.add(new CeramicBrickPair(color, color, CeramicBrickType.TILE).getStack(1));
    }
    for (CeramicBrickType type : CeramicBrickType.VALUES) {
        if (type.canDouble()) {
            itemList.add(new CeramicBrickPair(EnumFlowerColor.Brown, EnumFlowerColor.Gold, type).getStack(1));
        }
    }
    itemList.add(new CeramicBrickPair(EnumFlowerColor.Gold, EnumFlowerColor.Gold, CeramicBrickType.SPLIT).getStack(1));
    itemList.add(new CeramicBrickPair(EnumFlowerColor.Brown, EnumFlowerColor.Brown, CeramicBrickType.CHEQUERED).getStack(1));
    itemList.add(new CeramicBrickPair(EnumFlowerColor.Gold, EnumFlowerColor.Brown, CeramicBrickType.LARGE_BRICK).getStack(1));
}
Also used : EnumFlowerColor(binnie.botany.api.genetics.EnumFlowerColor) CeramicBrickPair(binnie.botany.ceramic.brick.CeramicBrickPair) CeramicBrickType(binnie.botany.ceramic.brick.CeramicBrickType)

Example 2 with EnumFlowerColor

use of binnie.botany.api.genetics.EnumFlowerColor in project Binnie by ForestryMC.

the class ModuleCeramic method registerRecipes.

@Override
public void registerRecipes() {
    RecipeUtil recipeUtil = new RecipeUtil(Constants.BOTANY_MOD_ID);
    ForgeRegistries.RECIPES.register(new CeramicTileRecipe());
    if (ModuleManager.isModuleEnabled(Constants.BOTANY_MOD_ID, BotanyModuleUIDs.GARDENING)) {
        recipeUtil.addShapelessRecipe("mortar_old", CeramicItems.MORTAR.get(1), BotanyItems.MORTAR.get(1));
    }
    recipeUtil.addShapelessRecipe("pigment_black", new ItemStack(pigment, 2, EnumFlowerColor.Black.ordinal()), "pigment", "pigment", "dyeBlack");
    recipeUtil.addRecipe("mortar", CeramicItems.MORTAR.get(6), " c ", "cgc", " c ", 'c', Items.CLAY_BALL, 'g', Blocks.GRAVEL);
    for (EnumFlowerColor c : EnumFlowerColor.values()) {
        ItemStack clay = new ItemStack(ModuleCeramic.clay, 1, c.ordinal());
        ItemStack pigment = new ItemStack(ModuleCeramic.pigment, 1, c.ordinal());
        recipeUtil.addShapelessRecipe("clay_" + c.getIdent(), clay, Items.CLAY_BALL, Items.CLAY_BALL, Items.CLAY_BALL, pigment);
        GameRegistry.addSmelting(clay, TileEntityMetadata.getItemStack(ceramic, c.ordinal()), 0.0f);
        ItemStack glass = TileEntityMetadata.getItemStack(stained, c.ordinal());
        glass.setCount(4);
        recipeUtil.addRecipe("mortar_" + c.getIdent(), glass, " g ", "gpg", " g ", 'g', Blocks.GLASS, 'p', pigment);
    }
    ForgeRegistries.RECIPES.register(new PigmentRecipe());
}
Also used : CeramicTileRecipe(binnie.botany.recipes.CeramicTileRecipe) EnumFlowerColor(binnie.botany.api.genetics.EnumFlowerColor) ItemStack(net.minecraft.item.ItemStack) PigmentRecipe(binnie.botany.recipes.PigmentRecipe) RecipeUtil(binnie.core.util.RecipeUtil)

Example 3 with EnumFlowerColor

use of binnie.botany.api.genetics.EnumFlowerColor in project Binnie by ForestryMC.

the class WindowBotanistDatabase method addTabs.

@Override
@SideOnly(Side.CLIENT)
protected void addTabs() {
    new PageSpeciesOverview(getInfoPages(Mode.SPECIES), new DatabaseTab(Botany.instance, "species.overview"));
    new PageSpeciesFlowerGenome(getInfoPages(Mode.SPECIES), new DatabaseTab(Botany.instance, "genome.title"));
    new PageSpeciesClassification(getInfoPages(Mode.SPECIES), new DatabaseTab(Botany.instance, "species.classification"));
    new PageSpeciesResultant(getInfoPages(Mode.SPECIES), new DatabaseTab(Botany.instance, "species.resultant"));
    new PageSpeciesMutations(getInfoPages(Mode.SPECIES), new DatabaseTab(Botany.instance, "species.further"));
    new PageBranchOverview(getInfoPages(Mode.BRANCHES), new DatabaseTab(Botany.instance, "branches.overview"));
    new PageBranchSpecies(getInfoPages(Mode.BRANCHES), new DatabaseTab(Botany.instance, "branches.species"));
    createMode(FlowerMode.Color, new ModeWidgets(FlowerMode.Color, this, (area, modePage) -> {
        FlowerColorControlListBox listBox = new FlowerColorControlListBox(modePage, area);
        List<IFlowerColor> colors = Arrays.stream(EnumFlowerColor.values()).map(EnumFlowerColor::getFlowerColorAllele).collect(Collectors.toList());
        listBox.setOptions(colors);
        return listBox;
    }));
    new PageColorMixResultant(getInfoPages(FlowerMode.Color), new DatabaseTab(Botany.instance, "color.resultant"));
    new PageColorMix(getInfoPages(FlowerMode.Color), new DatabaseTab(Botany.instance, "color.further"));
    new PageBreeder(getInfoPages(Mode.BREEDER), getUsername(), new DatabaseTab(Botany.instance, "breeder"));
}
Also used : Arrays(java.util.Arrays) IDatabaseMode(binnie.core.gui.database.IDatabaseMode) ControlListBox(binnie.core.gui.controls.listbox.ControlListBox) IFlowerColor(binnie.botany.api.genetics.IFlowerColor) Side(net.minecraftforge.fml.relauncher.Side) PageSpeciesOverview(binnie.core.gui.database.PageSpeciesOverview) PageSpeciesClassification(binnie.core.gui.database.PageSpeciesClassification) IWidget(binnie.core.api.gui.IWidget) SideOnly(net.minecraftforge.fml.relauncher.SideOnly) ModeWidgets(binnie.core.gui.database.ModeWidgets) IArea(binnie.core.api.gui.IArea) ModuleFlowers(binnie.botany.modules.ModuleFlowers) PageBranchSpecies(binnie.core.gui.database.PageBranchSpecies) DatabaseTab(binnie.core.gui.database.DatabaseTab) PageSpeciesResultant(binnie.core.gui.database.PageSpeciesResultant) Collectors(java.util.stream.Collectors) EnumFlowerColor(binnie.botany.api.genetics.EnumFlowerColor) Botany(binnie.botany.Botany) I18N(binnie.core.util.I18N) List(java.util.List) EntityPlayer(net.minecraft.entity.player.EntityPlayer) PageBranchOverview(binnie.core.gui.database.PageBranchOverview) PageBreeder(binnie.core.gui.database.PageBreeder) WindowAbstractDatabase(binnie.core.gui.database.WindowAbstractDatabase) ControlPage(binnie.core.gui.controls.page.ControlPage) PageSpeciesMutations(binnie.core.gui.database.PageSpeciesMutations) DatabaseConstants(binnie.core.gui.database.DatabaseConstants) Window(binnie.core.gui.minecraft.Window) PageBranchSpecies(binnie.core.gui.database.PageBranchSpecies) DatabaseTab(binnie.core.gui.database.DatabaseTab) PageSpeciesMutations(binnie.core.gui.database.PageSpeciesMutations) EnumFlowerColor(binnie.botany.api.genetics.EnumFlowerColor) PageSpeciesOverview(binnie.core.gui.database.PageSpeciesOverview) PageSpeciesClassification(binnie.core.gui.database.PageSpeciesClassification) List(java.util.List) PageSpeciesResultant(binnie.core.gui.database.PageSpeciesResultant) ModeWidgets(binnie.core.gui.database.ModeWidgets) PageBranchOverview(binnie.core.gui.database.PageBranchOverview) PageBreeder(binnie.core.gui.database.PageBreeder) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

EnumFlowerColor (binnie.botany.api.genetics.EnumFlowerColor)3 Botany (binnie.botany.Botany)1 IFlowerColor (binnie.botany.api.genetics.IFlowerColor)1 CeramicBrickPair (binnie.botany.ceramic.brick.CeramicBrickPair)1 CeramicBrickType (binnie.botany.ceramic.brick.CeramicBrickType)1 ModuleFlowers (binnie.botany.modules.ModuleFlowers)1 CeramicTileRecipe (binnie.botany.recipes.CeramicTileRecipe)1 PigmentRecipe (binnie.botany.recipes.PigmentRecipe)1 IArea (binnie.core.api.gui.IArea)1 IWidget (binnie.core.api.gui.IWidget)1 ControlListBox (binnie.core.gui.controls.listbox.ControlListBox)1 ControlPage (binnie.core.gui.controls.page.ControlPage)1 DatabaseConstants (binnie.core.gui.database.DatabaseConstants)1 DatabaseTab (binnie.core.gui.database.DatabaseTab)1 IDatabaseMode (binnie.core.gui.database.IDatabaseMode)1 ModeWidgets (binnie.core.gui.database.ModeWidgets)1 PageBranchOverview (binnie.core.gui.database.PageBranchOverview)1 PageBranchSpecies (binnie.core.gui.database.PageBranchSpecies)1 PageBreeder (binnie.core.gui.database.PageBreeder)1 PageSpeciesClassification (binnie.core.gui.database.PageSpeciesClassification)1