Package forestry.api.apiculture
Interface IBeeJubilance
public interface IBeeJubilance
Determines whether a bee species is jubilant in a certain environment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<IBeeJubilance> Used to read a jubilance from a datapack file in thebee_jubilancefolder. -
Method Summary
Modifier and TypeMethodDescriptiondefault com.mojang.serialization.MapCodec<? extends IBeeJubilance> codec()Used to write this jubilance to a datapack file.booleanisJubilant(IBeeSpecies species, IGenome genome, IBeeHousing housing) Returns true when conditions are right to make this species Jubilant.
-
Field Details
-
CODEC
Used to read a jubilance from a datapack file in thebee_jubilancefolder. The"type"field names an entry ofForestryRegistries.BEE_JUBILANCE_TYPE.
-
-
Method Details
-
codec
Used to write this jubilance to a datapack file. A jubilance that is only registered in code does not need to override this.- Returns:
- The codec registered for this jubilance in
ForestryRegistries.BEE_JUBILANCE_TYPE
-
isJubilant
Returns true when conditions are right to make this species Jubilant. Jubilant bees can produce their Specialty products.
-