Package forestry.api.plugin
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface forestry.api.plugin.ISpeciesBuilder
ISpeciesBuilder.ISpeciesFactory<T extends ISpeciesType<S,?>, S extends ISpecies<?>, B extends ISpeciesBuilder<T, S, B>> -
Method Summary
Modifier and TypeMethodDescriptionaddProduct(IProduct product) Adds a product to this species.default IBeeSpeciesBuilderaddProduct(net.minecraft.world.item.ItemStack stack, float chance) Adds a product to this bee species.addSpecialty(IProduct specialty) Adds a specialty product to this species, only produced when the bee in a jubilant state.default IBeeSpeciesBuilderaddSpecialty(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.intgetBody()intintSets the color of the bee's body.setJubilance(IBeeJubilance jubilance) Specify the jubilance conditions for this bee species.setOutline(Color color) Overrides the default bee outlines set inIApicultureRegistration.registerSpecies(net.minecraft.resources.ResourceLocation, java.lang.String, java.lang.String, boolean, java.awt.Color).setStripes(Color color) Sets the color of the bee's stripes.Methods inherited from interface forestry.api.plugin.ISpeciesBuilder
addMutations, buildGenome, buildMutations, createSpeciesFactory, getAuthority, getComplexity, getEscritoireColor, getGenus, getHumidity, getSpecies, getTemperature, hasGlint, isDominant, isSecret, setAuthority, setComplexity, setDominant, setEscritoireColor, setFactory, setGenome, setGlint, setHumidity, setSecret, setTemperature
-
Method Details
-
addProduct
Adds a product to this species.- Parameters:
product- A product that can be produced by this species.
-
addProduct
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
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
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
Sets the color of the bee's body. The default is yellow,#ffdc16, used by most bees. -
setStripes
Sets the color of the bee's stripes. The default isColor.BLACK. -
setOutline
Overrides the default bee outlines set inIApicultureRegistration.registerSpecies(net.minecraft.resources.ResourceLocation, java.lang.String, java.lang.String, boolean, java.awt.Color). -
setJubilance
Specify the jubilance conditions for this bee species. The default returns true if the bee's ideal temperature and humidity are met. WhenIBeeJubilance.isJubilant(forestry.api.apiculture.genetics.IBeeSpecies, forestry.api.genetics.IGenome, forestry.api.apiculture.IBeeHousing)returns true, a bee can produce its specialty products. -
buildProducts
-
buildSpecialties
-
getBody
int getBody() -
getStripes
int getStripes() -
getOutline
int getOutline() -
getJubilance
IBeeJubilance getJubilance()
-