BabyCreatures

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
@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
Link copied to clipboard
@Serializable
data class CreatureOptions(var babyChance: Float = 0.1f, var speedMultiplier: Double = 1.5, var scale: Double = 0.5)

Properties

Link copied to clipboard
open override val description: String
Link copied to clipboard
open val id: String
Link copied to clipboard
open val name: String
Link copied to clipboard
open override var options: ModuleOptions
Link copied to clipboard
val typeSafeOptions: <Error class: unknown class>

Functions

Link copied to clipboard
Link copied to clipboard
fun on(e: CreatureSpawnEvent)
Link copied to clipboard
open fun onDisable()

Called when the module is disabled.

Link copied to clipboard
open fun onEnable()

Called when the module is enabled.