BabyCreaturesOptions

@Serializable
data class BabyCreaturesOptions(var enabled: Boolean = true, var creatures: Map<EntityType, BabyCreatures.CreatureOptions> = EntityType.entries.filter { type -> type.entityClass?.let { LivingEntity::class.java.isAssignableFrom(it) && !Ageable::class.java.isAssignableFrom(it) } ?: false }.associateWith { CreatureOptions() }) : ModuleOptions

Constructors

Link copied to clipboard
constructor(enabled: Boolean = true, creatures: Map<EntityType, BabyCreatures.CreatureOptions> = EntityType.entries.filter { type -> type.entityClass?.let { LivingEntity::class.java.isAssignableFrom(it) && !Ageable::class.java.isAssignableFrom(it) } ?: false }.associateWith { CreatureOptions() })

Properties

Link copied to clipboard

Map of creature types to their options. This map is automatically populated with all living entities that are not ageable. Remove a type from this map to disable baby spawning for that creature.

Link copied to clipboard
open override var enabled: Boolean

Whether the module is enabled or not. This is used to determine if the module should be loaded and its features activated.