EntityCategory

@CataloguedBy(catalogue = EntityCategories::class)
interface EntityCategory : Keyed

A category of entity that applies certain spawning mechanics and behaviours.

Functions

Link copied to clipboard
@NotNull
abstract fun key(): @NotNull Key

Properties

Link copied to clipboard
@get:JvmName(name = "despawnDistance")
abstract val despawnDistance: Int

The distance that the mob has to be from the player to be despawned.

Link copied to clipboard
abstract val isFriendly: Boolean

If the mob will be friendly towards the player.