Package forestry.api.apiculture.genetics
Interface IBeeEffectFactory
public interface IBeeEffectFactory
Creates the bee effects that Forestry can load from a datapack.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreatePotion(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 alleleeffect- The mob effect to applyduration- The duration of the mob effect in ticks- Returns:
- The bee effect, which has the
forestry:apply_potiontype
-
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 alleleeffect- The mob effect to applyduration- The duration of the mob effect in ticksthrottle- The number of ticks between applicationschance- The chance from 0 to 1 that an entity receives the mob effect- Returns:
- The bee effect, which has the
forestry:apply_potiontype
-