Interface IApicultureRegistration


public interface IApicultureRegistration
Entry point for apiculture related registration. Obtain an instance by overriding IForestryPlugin.registerApiculture(forestry.api.plugin.IApicultureRegistration).
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    addVillageBee(net.minecraft.resources.ResourceLocation speciesId, boolean rare)
    Shorthand for adding a village bee that uses the default genome.
    void
    addVillageBee(net.minecraft.resources.ResourceLocation speciesId, boolean rare, Map<IChromosome<?>,Allele<?>> alleles)
    Adds a bee species to the possible bees found in apiaries in the Apiarist villager houses.
    void
    modifyHive(net.minecraft.resources.ResourceLocation id, Consumer<IHiveBuilder> action)
    Modifies an already registered hive.
    void
    modifySpecies(net.minecraft.resources.ResourceLocation id, Consumer<IBeeSpeciesBuilder> action)
    Modify a species that was already registered.
    void
    registerActivityType(net.minecraft.resources.ResourceLocation id, IActivityType type)
    Register an activity type, which defines activity periods for a bee.
    void
    registerBeeEffect(net.minecraft.resources.ResourceLocation id, IBeeEffect effect)
     
    void
    registerBeeJubilance(net.minecraft.resources.ResourceLocation id, IBeeJubilance jubilance)
     
    registerHive(net.minecraft.resources.ResourceLocation id, IHiveDefinition definition)
    Register a wild hive for world generation.
    registerSpecies(net.minecraft.resources.ResourceLocation id, String genus, String species, boolean dominant, net.minecraft.network.chat.TextColor outline)
    Register a new bee species.
  • Method Details

    • registerSpecies

      IBeeSpeciesBuilder registerSpecies(net.minecraft.resources.ResourceLocation id, String genus, String species, boolean dominant, net.minecraft.network.chat.TextColor outline)
      Register a new bee species.
      Parameters:
      id - The unique ID for this species.
      genus - The scientific name of the genus containing this species. See ForestryTaxa.
      species - The scientific name of this species without the genus. (Ex. mellifera, for Apis mellifera)
      dominant - Whether this species appears as a dominant allele in a genome.
      outline - The color used for tinting the bee's outline. IntelliJ should show a nice color preview.
      Throws:
      IllegalStateException - If a species has already been registered with the given ID.
      Since:
      2.3.3 Now accepts TextColor instead of java.awt.Color
    • modifySpecies

      void modifySpecies(net.minecraft.resources.ResourceLocation id, Consumer<IBeeSpeciesBuilder> action)
      Modify a species that was already registered. You can change all the same things as in registerSpecies(net.minecraft.resources.ResourceLocation, java.lang.String, java.lang.String, boolean, net.minecraft.network.chat.TextColor) except for the genus and species names.
      Parameters:
      id - The ID of the species to modify.
      action - A function that receives the builder of the species to modify.
    • addVillageBee

      void addVillageBee(net.minecraft.resources.ResourceLocation speciesId, boolean rare, Map<IChromosome<?>,Allele<?>> alleles)
      Adds a bee species to the possible bees found in apiaries in the Apiarist villager houses. There are two pools: the common pool, which is rolled 75% of the time, and the rare pool, which is rolled 25% of the time.
      Parameters:
      speciesId - The ID of the species to add.
      rare - If true, this bee goes into the "rare" village bee pool, which is chosen 25% of the time instead of the "common" pool.
      alleles - Map of non-default alleles. Example is the rare Tolerant Flyer variant of the Forest species.
    • addVillageBee

      default void addVillageBee(net.minecraft.resources.ResourceLocation speciesId, boolean rare)
      Shorthand for adding a village bee that uses the default genome.
      Parameters:
      speciesId - The ID of the species to add.
      rare - Whether this species is added to the rare pool or the common pool.
    • registerHive

      IHiveBuilder registerHive(net.minecraft.resources.ResourceLocation id, IHiveDefinition definition)
      Register a wild hive for world generation.
      Parameters:
      id - The unique ID for this hive.
      definition - The hive definition to register.
    • modifyHive

      void modifyHive(net.minecraft.resources.ResourceLocation id, Consumer<IHiveBuilder> action)
      Modifies an already registered hive.
      Parameters:
      id - The ID of the hive to modify.
      action - The modification to apply to the hive builder.
    • registerBeeEffect

      void registerBeeEffect(net.minecraft.resources.ResourceLocation id, IBeeEffect effect)
    • registerBeeJubilance

      void registerBeeJubilance(net.minecraft.resources.ResourceLocation id, IBeeJubilance jubilance)
    • registerActivityType

      void registerActivityType(net.minecraft.resources.ResourceLocation id, IActivityType type)
      Register an activity type, which defines activity periods for a bee.
      Parameters:
      id - The unique ID for this activity type.
      type - The activity type to register.