mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 12:42:53 +00:00
46 lines
1.2 KiB
Java
46 lines
1.2 KiB
Java
package binnie.extratrees.genetics;
|
|
|
|
import binnie.core.BinnieCore;
|
|
import binnie.core.IInitializable;
|
|
import forestry.api.arboriculture.IAlleleFruit;
|
|
import forestry.api.genetics.AlleleRegisterEvent;
|
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class ModuleGenetics implements IInitializable {
|
|
String[] branches;
|
|
List<List<String>> classifications;
|
|
|
|
public ModuleGenetics() {
|
|
this.branches = new String[]{"Malus Maleae Amygdaloideae Rosaceae", "Musa Musaceae Zingiberales Commelinids Angiosperms", "Sorbus Maleae", "Tsuga Pinaceae", "Fraxinus Oleeae Oleaceae Lamiales Asterids Angiospems"};
|
|
this.classifications = new ArrayList<>();
|
|
}
|
|
|
|
@Override
|
|
public void preInit() {
|
|
}
|
|
|
|
|
|
@Override
|
|
public void init() {
|
|
AlleleETFruit.init();
|
|
ETTreeDefinition.initTrees();
|
|
ExtraTreeMutation.init();
|
|
if(BinnieCore.isLepidopteryActive()){
|
|
ButterflySpecies.initButterflies();
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void postInit() {
|
|
}
|
|
|
|
@SubscribeEvent
|
|
public static void onRegisterAllele(AlleleRegisterEvent<IAlleleFruit> event){
|
|
if(event.getAlleleClass() == IAlleleFruit.class){
|
|
AlleleETFruit.preInit();
|
|
}
|
|
}
|
|
} |