Interface IBeeModifier


public interface IBeeModifier
A bee modifier allows modifying certain conditions in a bee hive.
  • Method Details

    • modifyTerritory

      default net.minecraft.core.Vec3i modifyTerritory(IGenome genome, net.minecraft.core.Vec3i currentModifier)
      Used to modify the territory of a bee, which is the area in which bees can find flowers, affect mobs with their IBeeEffect, and pollinate tree leaves.
      Parameters:
      genome - Genome of the bee this modifier is called for.
      currentModifier - Current modifier. Starts out as the value of the allele
      Returns:
      Float used to modify the base territory.
    • modifyMutationChance

      default float modifyMutationChance(IGenome genome, IGenome mate, IMutation<IBeeSpecies> mutation, float currentChance)
      Used to modify the chance for mutations to happen.
      Parameters:
      genome - Genome of the bee this modifier is called for.
      mate - Genome of the bee mate this modifier is called for.
      mutation - The mutation that might occur.
      currentChance - The current mutation chance. Starts at the base chance of the mutation but may have already been modified by other IBeeModifiers.
      Returns:
      Float used to modify the base mutation chance.
    • modifyAging

      default float modifyAging(IGenome genome, @Nullable IGenome mate, float currentAging)
      Used to speed up or slow down the aging of a queen.
      Parameters:
      genome - Genome of the bee this modifier is called for.
      mate - Genome of the mate, null if there this bee is not mated.
      currentAging - Current amount to age the bee by. Starts at 1 but may have already been modified by other IBeeModifiers.
      Returns:
      The number of age steps to age. This number will be rounded if it is not whole. Default is 1.
    • modifyProductionSpeed

      default float modifyProductionSpeed(IGenome genome, float currentSpeed)
      Used to increase or decrease the chances of producing products and specialties.
      Parameters:
      genome - Genome of the bee this modifier is called for.
      currentSpeed - Current production speed. Starts at the value of the bee's active BeeChromosomes.SPEED allele.
      Returns:
      Float modifying the production speed of queens.
    • modifyPollination

      default float modifyPollination(IGenome genome, float currentPollination)
      Parameters:
      genome - Genome of the bee this modifier is called for.
      currentPollination - Current pollination. Starts out at the value of the bee's active BeeChromosomes.POLLINATION allele.
      Returns:
      Float modifying the flowering of queens.
    • modifyGeneticDecay

      default float modifyGeneticDecay(IGenome genome, float currentDecay)
      Parameters:
      genome - Genome of the bee this modifier is called for.
      currentDecay - Current decay. Starts out at 1f but may already have been modified by other modifiers.
      Returns:
      Float modifying the chance for a swarmer queen to die off.
    • isSealed

      default boolean isSealed()
      Returns:
      Whether bees in this housing can fly in the rain without BeeChromosomes.TOLERATES_RAIN.
    • isSelfLighted

      default boolean isSelfLighted()
      Returns:
      Whether bees in the hive can work during the night without BeeChromosomes.NEVER_SLEEPS or IBeeSpecies.isNocturnal().
    • isSunlightSimulated

      default boolean isSunlightSimulated()
      Returns:
      Whether bees in the hive can work when the sky is obstructed without BeeChromosomes.CAVE_DWELLING.
    • isHellish

      default boolean isHellish()
      Returns:
      Whether this hive simulates a hellish climate even if not in the Nether.