mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
41 lines
1.2 KiB
Java
41 lines
1.2 KiB
Java
/*******************************************************************************
|
|
* Copyright 2011-2014 SirSengir
|
|
*
|
|
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
|
|
******************************************************************************/
|
|
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.
|
|
*/
|
|
void onRegisterAllele(IAllele allele);
|
|
|
|
/**
|
|
* Called when a classification is registered with {@link IAlleleRegistry}.
|
|
*
|
|
* @param classification
|
|
* Classification which was registered.
|
|
*/
|
|
void onRegisterClassification(IClassification classification);
|
|
|
|
/**
|
|
* Called when a fruit family is registered with {@link IAlleleRegistry}.
|
|
*
|
|
* @param family
|
|
* Fruit family which was registered.
|
|
*/
|
|
void onRegisterFruitFamily(IFruitFamily family);
|
|
}
|