Allows butterflies to restrict random spawns beyond the restrictions set by temperature() and humidity().
None of the butterflies added by base Forestry have a biome restriction.
Returns:
Tag of biomes this butterfly is limited to spawning in, or null if this butterfly can spawn in any biome.
getRarity
floatgetRarity()
Returns:
Float between 0 and 1 representing the rarity of the species, will affect spawn rate.
getFlightDistance
floatgetFlightDistance()
Returns:
Float representing the distance below which this butterfly will take flight if it detects a player which is not sneaking.
isNocturnal
booleanisNocturnal()
Returns:
true if this species is only active at night.
isMoth
booleanisMoth()
Returns:
true if this species is a Moth species instead of a Butterfly