Interface IBeeEffect

All Superinterfaces:
IEffect, IRegistryAlleleValue

public interface IBeeEffect extends IEffect, IRegistryAlleleValue
  • Method Details

    • validateStorage

      default IEffectData validateStorage(IEffectData storedData)
      Description copied from interface: IEffect
      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.
      Specified by:
      validateStorage in interface IEffect
      Returns:
      IEffectData for the next cycle.
    • isCombinable

      default boolean isCombinable()
      Specified by:
      isCombinable in interface IEffect
      Returns:
      Whether this effect can work with another combinable effect on the same chromosome pair.
    • doEffect

      default IEffectData doEffect(IGenome genome, IEffectData storedData, IBeeHousing housing)
      Called by apiaries to cause an effect in the world. (server)
      Parameters:
      genome - Genome of the bee queen causing this effect
      storedData - Object containing the stored effect data for the apiary/hive the bee is in.
      housing - IBeeHousing the bee currently resides in.
      Returns:
      storedData, may have been manipulated.
    • doFX

      default IEffectData doFX(IGenome genome, IEffectData storedData, IBeeHousing housing)
      Called on the client side to produce visual bee effects.
      Parameters:
      genome - Genome of the bee queen causing this effect
      storedData - Object containing the stored effect data for the apiary/hive the bee is in.
      housing - IBeeHousing the bee currently resides in.
      Returns:
      storedData, may have been manipulated.