Test with stuff + Forestry potential support
This commit is contained in:
parent
5b05cf651b
commit
bd26e441cb
174 changed files with 5602 additions and 0 deletions
36
BM_src/forestry/api/genetics/IAlleleHandler.java
Normal file
36
BM_src/forestry/api/genetics/IAlleleHandler.java
Normal file
|
@ -0,0 +1,36 @@
|
|||
package forestry.api.genetics;
|
||||
|
||||
/**
|
||||
* @author Alex Binnie
|
||||
*
|
||||
* Handler for events that occur in IAlleleRegistry, such as registering alleles, branches etc. Useful for handling plugin specific behavior (i.e.
|
||||
* creating a list of all bee species etc.)
|
||||
*
|
||||
*/
|
||||
public interface IAlleleHandler {
|
||||
|
||||
/**
|
||||
* Called when an allele is registered with {@link IAlleleRegistry}.
|
||||
*
|
||||
* @param allele
|
||||
* Allele which was registered.
|
||||
*/
|
||||
public void onRegisterAllele(IAllele allele);
|
||||
|
||||
/**
|
||||
* Called when a classification is registered with {@link IAlleleRegistry}.
|
||||
*
|
||||
* @param classification
|
||||
* Classification which was registered.
|
||||
*/
|
||||
public void onRegisterClassification(IClassification classification);
|
||||
|
||||
/**
|
||||
* Called when a fruit family is registered with {@link IAlleleRegistry}.
|
||||
*
|
||||
* @param family
|
||||
* Fruit family which was registered.
|
||||
*/
|
||||
public void onRegisterFruitFamily(IFruitFamily family);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue