VillagerProperties

Implementation of IVillagerProperties for villagers.

Constructors

Link copied to clipboard
public VillagerProperties VillagerProperties(ICommonProperties commonProperties, Identifier profession, Integer level, Identifier type)

Properties

Link copied to clipboard
private final Integer level

The level of the villager.

Link copied to clipboard
private final Identifier profession

The profession ID of the villager.

Link copied to clipboard
private final Identifier type

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
private final Identifier biome

Biome the container is in.

Link copied to clipboard
private final LocalDate date

The current date.

Link copied to clipboard
private final Integer height

Y-coordinate of the container.

Link copied to clipboard
private final String name

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

Functions

Link copied to clipboard
public Integer getLevel()

The level of the villager.

Link copied to clipboard

The profession ID of the villager.

Link copied to clipboard

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

Link copied to clipboard
public Unit writeSelectors(BiConsumer<String, String> appendSelector)

Inherited functions

Link copied to clipboard

Biome the container is in.

Link copied to clipboard
public LocalDate getDate()

The current date.

Link copied to clipboard
public Integer getHeight()

Y-coordinate of the container.

Link copied to clipboard
public String getName()

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