Interface IBeeSpeciesBuilder

All Superinterfaces:
ISpeciesBuilder<IBeeSpeciesType,IBeeSpecies,IBeeSpeciesBuilder>

public interface IBeeSpeciesBuilder extends ISpeciesBuilder<IBeeSpeciesType,IBeeSpecies,IBeeSpeciesBuilder>
Builder used to register new bee species and configure already existing ones. Use IApicultureRegistration.registerSpecies(net.minecraft.resources.ResourceLocation, java.lang.String, java.lang.String, boolean, java.awt.Color) to obtain instances of this class.
  • Method Details

    • addProduct

      IBeeSpeciesBuilder addProduct(IProduct product)
      Adds a product to this species.
      Parameters:
      product - A product that can be produced by this species.
    • addProduct

      default IBeeSpeciesBuilder addProduct(net.minecraft.world.item.ItemStack stack, float chance)
      Adds a product to this bee species.
      Parameters:
      stack - The item stack the product should produce.
      chance - A float between 0 and 1. The chance that this product is produced during a single work cycle.
    • addSpecialty

      IBeeSpeciesBuilder addSpecialty(IProduct specialty)
      Adds a specialty product to this species, only produced when the bee in a jubilant state.
      Parameters:
      specialty - A product that can only be produced by this species when in its jubilant state.
    • addSpecialty

      default IBeeSpeciesBuilder addSpecialty(net.minecraft.world.item.ItemStack stack, float chance)
      Adds a specialty to the bee species, a product only produced when the bee is in a jubilant state.
      Parameters:
      stack - The item stack the product should produce.
      chance - A float between 0 and 1. The chance that this product is produced during a single work cycle.
    • setBody

      IBeeSpeciesBuilder setBody(net.minecraft.network.chat.TextColor color)
      Sets the color of the bee's body. The default is yellow, #ffdc16, used by most bees.
      Since:
      2.3.3 Now accepts TextColor instead of java.awt.Color
    • setStripes

      IBeeSpeciesBuilder setStripes(net.minecraft.network.chat.TextColor color)
      Sets the color of the bee's stripes. The default is #000000.
      Since:
      2.3.3 Now accepts TextColor instead of java.awt.Color
    • setOutline

      IBeeSpeciesBuilder setOutline(net.minecraft.network.chat.TextColor color)
      Since:
      2.3.3 Now accepts TextColor instead of java.awt.Color
    • setBody

      @Deprecated(forRemoval=true) default IBeeSpeciesBuilder setBody(Color color)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use variant that accepts TextColor
    • setStripes

      @Deprecated(forRemoval=true) default IBeeSpeciesBuilder setStripes(Color color)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use variant that accepts TextColor
    • setOutline

      @Deprecated(forRemoval=true) default IBeeSpeciesBuilder setOutline(Color color)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use variant that accepts TextColor
    • setJubilance

      IBeeSpeciesBuilder setJubilance(IBeeJubilance jubilance)
      Specify the jubilance conditions for this bee species. The default returns true if the bee's ideal temperature and humidity are met. When IBeeJubilance.isJubilant(forestry.api.apiculture.genetics.IBeeSpecies, forestry.api.genetics.IGenome, forestry.api.apiculture.IBeeHousing) returns true, a bee can produce its specialty products.
    • buildProducts

      List<IProduct> buildProducts()
    • buildSpecialties

      List<IProduct> buildSpecialties()
    • getBody

      int getBody()
    • getStripes

      int getStripes()
    • getOutline

      int getOutline()
    • getJubilance

      IBeeJubilance getJubilance()