Search in sources :

Example 1 with PageSpeciesOverview

use of binnie.core.gui.database.PageSpeciesOverview in project Binnie by ForestryMC.

the class WindowLepidopteristDatabase method addTabs.

@Override
@SideOnly(Side.CLIENT)
protected void addTabs() {
    new PageSpeciesOverview(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "butterfly.species.overview"));
    new PageSpeciesClassification(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "butterfly.species.classification"));
    new PageSpeciesImage(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "butterfly.species.specimen"));
    new PageSpeciesResultant(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "butterfly.species.resultant"));
    new PageSpeciesMutations(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "butterfly.species.further"));
    new PageBranchOverview(this.getInfoPages(Mode.BRANCHES), new DatabaseTab(ExtraTrees.instance, "butterfly.branches.overview"));
    new PageBranchSpecies(this.getInfoPages(Mode.BRANCHES), new DatabaseTab(ExtraTrees.instance, "butterfly.branches.species"));
    new PageBreeder(this.getInfoPages(Mode.BREEDER), this.getUsername(), new DatabaseTab(ExtraTrees.instance, "butterfly.breeder"));
}
Also used : PageSpeciesMutations(binnie.core.gui.database.PageSpeciesMutations) PageSpeciesOverview(binnie.core.gui.database.PageSpeciesOverview) PageBranchSpecies(binnie.core.gui.database.PageBranchSpecies) PageSpeciesClassification(binnie.core.gui.database.PageSpeciesClassification) PageSpeciesResultant(binnie.core.gui.database.PageSpeciesResultant) PageBranchOverview(binnie.core.gui.database.PageBranchOverview) DatabaseTab(binnie.core.gui.database.DatabaseTab) PageBreeder(binnie.core.gui.database.PageBreeder) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 2 with PageSpeciesOverview

use of binnie.core.gui.database.PageSpeciesOverview in project Binnie by ForestryMC.

the class WindowApiaristDatabase method addTabs.

@Override
@SideOnly(Side.CLIENT)
protected void addTabs() {
    new PageSpeciesOverview(getInfoPages(Mode.SPECIES), new DatabaseTab(Constants.GENETICS_MOD_ID, "species.overview"));
    new PageSpeciesClassification(getInfoPages(Mode.SPECIES), new DatabaseTab(Constants.GENETICS_MOD_ID, "species.classification"));
    new PageSpeciesGenome(getInfoPages(Mode.SPECIES), new DatabaseTab(Constants.GENETICS_MOD_ID, "species.genome"));
    new PageSpeciesProducts(getInfoPages(Mode.SPECIES), new DatabaseTab(Constants.GENETICS_MOD_ID, "species.products"));
    new PageSpeciesClimate(getInfoPages(Mode.SPECIES), new DatabaseTab(Constants.GENETICS_MOD_ID, "species.climate"));
    new PageSpeciesResultant(getInfoPages(Mode.SPECIES), new DatabaseTab(Constants.GENETICS_MOD_ID, "species.resultant"));
    new PageSpeciesMutations(getInfoPages(Mode.SPECIES), new DatabaseTab(Constants.GENETICS_MOD_ID, "species.further"));
    new PageBranchOverview(getInfoPages(Mode.BRANCHES), new DatabaseTab(Constants.GENETICS_MOD_ID, "branches.overview"));
    new PageBranchSpecies(getInfoPages(Mode.BRANCHES), new DatabaseTab(Constants.GENETICS_MOD_ID, "branches.species"));
    new PageBreeder(getInfoPages(Mode.BREEDER), getUsername(), new DatabaseTab(Constants.GENETICS_MOD_ID, "breeder"));
}
Also used : PageSpeciesMutations(binnie.core.gui.database.PageSpeciesMutations) PageSpeciesGenome(binnie.extrabees.gui.PageSpeciesGenome) PageSpeciesOverview(binnie.core.gui.database.PageSpeciesOverview) PageSpeciesProducts(binnie.extrabees.gui.PageSpeciesProducts) PageBranchSpecies(binnie.core.gui.database.PageBranchSpecies) PageSpeciesClassification(binnie.core.gui.database.PageSpeciesClassification) PageSpeciesResultant(binnie.core.gui.database.PageSpeciesResultant) PageSpeciesClimate(binnie.extrabees.gui.PageSpeciesClimate) PageBranchOverview(binnie.core.gui.database.PageBranchOverview) DatabaseTab(binnie.core.gui.database.DatabaseTab) PageBreeder(binnie.core.gui.database.PageBreeder) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 3 with PageSpeciesOverview

use of binnie.core.gui.database.PageSpeciesOverview 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)

Example 4 with PageSpeciesOverview

use of binnie.core.gui.database.PageSpeciesOverview in project Binnie by ForestryMC.

the class WindowArboristDatabase method addTabs.

@Override
@SideOnly(Side.CLIENT)
protected void addTabs() {
    new PageSpeciesOverview(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "species.overview"));
    new PageSpeciesTreeGenome(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "species.genome"));
    new PageSpeciesClassification(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "species.classification"));
    new PageSpeciesResultant(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "species.resultant"));
    new PageSpeciesMutations(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "species.further"));
    new PageBranchOverview(this.getInfoPages(Mode.BRANCHES), new DatabaseTab(ExtraTrees.instance, "branches.overview"));
    new PageBranchSpecies(this.getInfoPages(Mode.BRANCHES), new DatabaseTab(ExtraTrees.instance, "branches.species"));
    new PageBreeder(this.getInfoPages(Mode.BREEDER), this.getUsername(), new DatabaseTab(ExtraTrees.instance, "breeder"));
    this.createMode(TreeMode.FRUIT, new ModeWidgets(TreeMode.FRUIT, this, (area, modePage) -> {
        ControlListBox<ItemStack> controlListBox = new ModeControlListBox(modePage, area);
        ITreeBreedingSystem breedingSystem = this.getBreedingSystem();
        controlListBox.setOptions(breedingSystem.getAllFruits());
        return controlListBox;
    }));
    this.createMode(TreeMode.WOOD, new ModeWidgets(TreeMode.WOOD, this, (area, modePage) -> {
        ControlListBox<ItemStack> controlListBox = new ModeControlListBox(modePage, area);
        ITreeBreedingSystem breedingSystem = this.getBreedingSystem();
        controlListBox.setOptions(breedingSystem.getAllWoods());
        return controlListBox;
    }));
    this.createMode(TreeMode.PLANKS, new ModeWidgets(TreeMode.PLANKS, this, (area, modePage) -> {
        ControlListBox<ItemStack> controlListBox = new ModeControlListBox(modePage, area);
        List<ItemStack> planks = WoodManager.getAllPlankTypes().stream().map(IDesignMaterial::getStack).collect(Collectors.toList());
        controlListBox.setOptions(planks);
        return controlListBox;
    }));
    new PageFruit(this.getInfoPages(TreeMode.FRUIT), new DatabaseTab(ExtraTrees.instance, "fruit.natural"), true);
    new PageFruit(this.getInfoPages(TreeMode.FRUIT), new DatabaseTab(ExtraTrees.instance, "fruit.potential"), false);
    new PageWood(this.getInfoPages(TreeMode.WOOD), new DatabaseTab(ExtraTrees.instance, "wood.natural"));
    new PagePlanksOverview(this.getInfoPages(TreeMode.PLANKS), new DatabaseTab(ExtraTrees.instance, "planks.overview"));
    new PagePlanksTrees(this.getInfoPages(TreeMode.PLANKS), new DatabaseTab(ExtraTrees.instance, "planks.natural"));
}
Also used : Binnie(binnie.core.Binnie) ITreeBreedingSystem(binnie.genetics.api.ITreeBreedingSystem) IDatabaseMode(binnie.core.gui.database.IDatabaseMode) ControlListBox(binnie.core.gui.controls.listbox.ControlListBox) ItemStack(net.minecraft.item.ItemStack) ExtraTrees(binnie.extratrees.ExtraTrees) Side(net.minecraftforge.fml.relauncher.Side) PageSpeciesOverview(binnie.core.gui.database.PageSpeciesOverview) WoodManager(binnie.extratrees.wood.WoodManager) PageSpeciesClassification(binnie.core.gui.database.PageSpeciesClassification) IWidget(binnie.core.api.gui.IWidget) ControlItemStackOption(binnie.core.gui.database.ControlItemStackOption) SideOnly(net.minecraftforge.fml.relauncher.SideOnly) ModeWidgets(binnie.core.gui.database.ModeWidgets) IArea(binnie.core.api.gui.IArea) PageBranchSpecies(binnie.core.gui.database.PageBranchSpecies) DatabaseTab(binnie.core.gui.database.DatabaseTab) TreeManager(forestry.api.arboriculture.TreeManager) PageSpeciesResultant(binnie.core.gui.database.PageSpeciesResultant) Collectors(java.util.stream.Collectors) 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) IDesignMaterial(binnie.design.api.IDesignMaterial) PageSpeciesMutations(binnie.core.gui.database.PageSpeciesMutations) Window(binnie.core.gui.minecraft.Window) PageBranchSpecies(binnie.core.gui.database.PageBranchSpecies) IDesignMaterial(binnie.design.api.IDesignMaterial) DatabaseTab(binnie.core.gui.database.DatabaseTab) ITreeBreedingSystem(binnie.genetics.api.ITreeBreedingSystem) ControlListBox(binnie.core.gui.controls.listbox.ControlListBox) PageSpeciesMutations(binnie.core.gui.database.PageSpeciesMutations) 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

DatabaseTab (binnie.core.gui.database.DatabaseTab)4 PageBranchOverview (binnie.core.gui.database.PageBranchOverview)4 PageBranchSpecies (binnie.core.gui.database.PageBranchSpecies)4 PageBreeder (binnie.core.gui.database.PageBreeder)4 PageSpeciesClassification (binnie.core.gui.database.PageSpeciesClassification)4 PageSpeciesMutations (binnie.core.gui.database.PageSpeciesMutations)4 PageSpeciesOverview (binnie.core.gui.database.PageSpeciesOverview)4 PageSpeciesResultant (binnie.core.gui.database.PageSpeciesResultant)4 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)4 IArea (binnie.core.api.gui.IArea)2 IWidget (binnie.core.api.gui.IWidget)2 ControlListBox (binnie.core.gui.controls.listbox.ControlListBox)2 ControlPage (binnie.core.gui.controls.page.ControlPage)2 IDatabaseMode (binnie.core.gui.database.IDatabaseMode)2 ModeWidgets (binnie.core.gui.database.ModeWidgets)2 WindowAbstractDatabase (binnie.core.gui.database.WindowAbstractDatabase)2 Window (binnie.core.gui.minecraft.Window)2 I18N (binnie.core.util.I18N)2 List (java.util.List)2 Collectors (java.util.stream.Collectors)2