VillagerProperties

data class VillagerProperties(commonProperties: ICommonProperties, val profession: Identifier, val level: Int, val type: Identifier) : ICommonProperties, IVillagerProperties(source)

Implementation of IVillagerProperties for villagers.

Constructors

Link copied to clipboard
constructor(commonProperties: ICommonProperties, profession: Identifier, level: Int, type: Identifier)

Properties

Link copied to clipboard
open override val level: Int

The level of the villager.

Link copied to clipboard
open override val profession: Identifier

The profession ID of the villager.

Link copied to clipboard
open override val type: Identifier

The type of the villager (e.g. which biome it was born in, can be seen on its clothing).

Inherited properties

Link copied to clipboard
open override val biome: Identifier

Biome the container is in.

Link copied to clipboard
open override val date: LocalDate

The current date.

Link copied to clipboard
open override val height: Int

Y-coordinate of the container.

Link copied to clipboard
open override val name: String?

Custom container name (renamed with an anvil or with a name tag).

Functions

Link copied to clipboard
open override fun writeSelectors(appendSelector: BiConsumer<String, String>)