port to forestry 4.2

This commit is contained in:
marcin212 committed 2016-10-20 02:56:31 +02:00
1 parent dbc5c1a564
commit f969f63b66
3697 files changed
+78372

No files matched your search

@@ -0,0 +1,42 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.craftgui.mod.database;
import forestry.api.genetics.IClassification;
import binnie.craftgui.controls.ControlTextCentered;
import binnie.craftgui.core.IWidget;
import cpw.mods.fml.common.Mod;
import forestry.api.genetics.IAlleleSpecies;
import binnie.craftgui.events.EventValueChanged;
import binnie.craftgui.controls.ControlText;
public class PageBranchSpecies extends PageBranch
{
private ControlText pageBranchSpecies_title;
private ControlSpeciesBox pageBranchSpecies_speciesList;
@Mod.EventHandler
public void onHandleEvent(final EventValueChanged<IAlleleSpecies> event) {
}
public PageBranchSpecies(final IWidget parent, final DatabaseTab tab) {
super(parent, tab);
this.pageBranchSpecies_title = new ControlTextCentered(this, 8.0f, "Species");
this.addEventHandler(new EventValueChanged.Handler() {
@Override
public void onEvent(final EventValueChanged event) {
if (event.isOrigin(PageBranchSpecies.this.pageBranchSpecies_speciesList)) {
((WindowAbstractDatabase) PageBranchSpecies.this.getSuperParent()).gotoSpecies((IAlleleSpecies) event.getValue());
}
}
});
this.pageBranchSpecies_speciesList = new ControlSpeciesBox(this, 4.0f, 20.0f, 136.0f, 152.0f);
}
@Override
public void onValueChanged(final IClassification branch) {
this.pageBranchSpecies_speciesList.setBranch(branch);
}
}