VillagerProperties

public final class VillagerProperties implements CommonProperties(source)

Properties for villagers.

Parameters

profession

The profession of a villager

level

The level of a villager

type

The type (skin) of a villager

Constructors

Link copied to clipboard
public VillagerProperties VillagerProperties(Identifier container, String name, Identifier biome, Integer height, Identifier profession, Integer level, Identifier type, LocalDate date)
public VillagerProperties VillagerProperties(Identifier container, String name, Identifier biome, Integer height, Identifier profession, Integer level, Identifier type)

Properties

Link copied to clipboard
private final Identifier biome

Biome of a block entity or entity

Link copied to clipboard
private final Identifier container

The identifier of the container. Same as in the /summon or /setblock commands

Link copied to clipboard
private final LocalDate date

The current date

Link copied to clipboard
private final Integer height

Y-coordinate of a block entity or entity

Link copied to clipboard
private final Integer level
Link copied to clipboard
private final String name

Custom entity or block entity name (renamed in an anvil or with a name tag)

Link copied to clipboard
private final Identifier profession
Link copied to clipboard
private final Identifier type

Functions

Link copied to clipboard

Biome of a block entity or entity

Link copied to clipboard

The identifier of the container. Same as in the /summon or /setblock commands

Link copied to clipboard
public LocalDate getDate()

The current date

Link copied to clipboard
public Integer getHeight()

Y-coordinate of a block entity or entity

Link copied to clipboard
public final Integer getLevel()
Link copied to clipboard
public String getName()

Custom entity or block entity name (renamed in an anvil or with a name tag)

Link copied to clipboard
public final Identifier getProfession()
Link copied to clipboard
public final Identifier getType()