Interface IBeeEffectFactory


public interface IBeeEffectFactory
Creates the bee effects that Forestry can load from a datapack.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    createPotion(boolean dominant, net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> effect, int duration)
    Creates a bee effect that applies a mob effect to nearby entities every 200 ticks.
    createPotion(boolean dominant, net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> effect, int duration, int throttle, float chance)
    Creates a bee effect that applies a mob effect to nearby entities.
  • Method Details

    • createPotion

      IBeeEffect createPotion(boolean dominant, net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> effect, int duration)
      Creates a bee effect that applies a mob effect to nearby entities every 200 ticks.
      Parameters:
      dominant - The dominance of the bee effect allele
      effect - The mob effect to apply
      duration - The duration of the mob effect in ticks
      Returns:
      The bee effect, which has the forestry:apply_potion type
    • createPotion

      IBeeEffect createPotion(boolean dominant, net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> effect, int duration, int throttle, float chance)
      Creates a bee effect that applies a mob effect to nearby entities.
      Parameters:
      dominant - The dominance of the bee effect allele
      effect - The mob effect to apply
      duration - The duration of the mob effect in ticks
      throttle - The number of ticks between applications
      chance - The chance from 0 to 1 that an entity receives the mob effect
      Returns:
      The bee effect, which has the forestry:apply_potion type