Package forestry.api.apiculture.genetics
Interface IBeeEffect
- All Superinterfaces:
IEffect,IRegistryAlleleValue
-
Method Summary
Modifier and TypeMethodDescriptiondefault IEffectDatadoEffect(IGenome genome, IEffectData storedData, IBeeHousing housing) Called by apiaries to cause an effect in the world.default IEffectDatadoFX(IGenome genome, IEffectData storedData, IBeeHousing housing) Called on the client side to produce visual bee effects.default booleandefault IEffectDatavalidateStorage(IEffectData storedData) Returns the passed data storage if it is valid for this effect or a new one if the passed storage object was invalid for this effect.Methods inherited from interface forestry.api.genetics.alleles.IRegistryAlleleValue
isDominant
-
Method Details
-
validateStorage
Description copied from interface:IEffectReturns the passed data storage if it is valid for this effect or a new one if the passed storage object was invalid for this effect.- Specified by:
validateStoragein interfaceIEffect- Returns:
IEffectDatafor the next cycle.
-
isCombinable
default boolean isCombinable()- Specified by:
isCombinablein interfaceIEffect- Returns:
- Whether this effect can work with another combinable effect on the same chromosome pair.
-
doEffect
Called by apiaries to cause an effect in the world. (server)- Parameters:
genome- Genome of the bee queen causing this effectstoredData- Object containing the stored effect data for the apiary/hive the bee is in.housing-IBeeHousingthe bee currently resides in.- Returns:
- storedData, may have been manipulated.
-
doFX
Called on the client side to produce visual bee effects.- Parameters:
genome- Genome of the bee queen causing this effectstoredData- Object containing the stored effect data for the apiary/hive the bee is in.housing-IBeeHousingthe bee currently resides in.- Returns:
- storedData, may have been manipulated.
-