Interface IBeeSpecies

All Superinterfaces:
IProductProducer, IRegistryAlleleValue, ISpecialtyProducer, ISpecies<IBee>

public interface IBeeSpecies extends ISpecies<IBee>, IProductProducer, ISpecialtyProducer
Represents a bee species. Defines a bee's traits, default genome, and produce.
  • Method Details

    • getType

      IBeeSpeciesType getType()
      Specified by:
      getType in interface ISpecies<IBee>
      Returns:
      The type of species this is.
    • getTemperature

      TemperatureType getTemperature()
      Returns:
      The preferred/ideal temperature for this bee.
    • getHumidity

      HumidityType getHumidity()
      Returns:
      The preferred/ideal humidity for this bee.
    • isJubilant

      boolean isJubilant(IGenome genome, IBeeHousing housing)
      Determines whether a bee of this species is in a jubilant state. Bees in a jubilant state are able to produce their specialty products. Most bees enter their jubilant state when they are in their preferred temperature/humidity, but others have additional restrictions.
      Parameters:
      genome - The genome of a bee of this species.
      housing - The hive where the bee is working. Provides access to the bee's working environment.
      Returns:
      Whether this bee should produce its specialty products.
      See Also:
    • getBody

      int getBody()
      Returns:
      The color of the bee's body. Used for tintIndex = 1 and is usually a shade of yellow, 0xffdc16.
    • getStripes

      int getStripes()
      Returns:
      The color of the bee's stripes. Used for tintIndex = 2 and is usually black.
    • getOutline

      int getOutline()
      Returns:
      The color of the bee's outline. Used for tintIndex = 0.