Add AlleleRegisterEvent

This commit is contained in:
Nedelosk committed 2017-04-10 00:23:39 +02:00
1 parent ac0864303c
commit 0aa4a0f794
6 files changed
+31 -5

No files matched your search

@@ -5,11 +5,12 @@ import net.minecraftforge.fml.common.eventhandler.Event;
/**
* Called after Forestry has registered all his species alleles of a individual.
*/
public class AlleleSpeciesRegisterEvent extends Event {
public class AlleleSpeciesRegisterEvent<A extends IAlleleSpecies> extends AlleleRegisterEvent<A> {
private final ISpeciesRoot root;
public AlleleSpeciesRegisterEvent(ISpeciesRoot root) {
public AlleleSpeciesRegisterEvent(ISpeciesRoot root, Class<? extends A> alleleClass) {
super(alleleClass);
this.root = root;
}