SPIGOT-4887: Villager level minimum is 1

By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
Bukkit/Spigot 2019-05-07 15:35:44 +02:00
parent 413964569b
commit 1ac05c8b80

View file

@ -43,7 +43,7 @@ public interface Villager extends AbstractVillager {
/** /**
* Gets the level of this villager. * Gets the level of this villager.
* *
* A villager with a level &lt;= 1 and no experience is liable to lose its * A villager with a level of 1 and no experience is liable to lose its
* profession. * profession.
* *
* @return this villager's level * @return this villager's level
@ -53,11 +53,11 @@ public interface Villager extends AbstractVillager {
/** /**
* Sets the level of this villager. * Sets the level of this villager.
* *
* A villager with a level &lt;= 1 and no experience is liable to lose its * A villager with a level of 1 and no experience is liable to lose its
* profession. * profession.
* *
* @param level the new level * @param level the new level
* @throws IllegalArgumentException if level not between [0, 5] * @throws IllegalArgumentException if level not between [1, 5]
*/ */
public void setVillagerLevel(int level); public void setVillagerLevel(int level);