mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
SPIGOT-4887: Villager level minimum is 1
This commit is contained in:
parent
d88d828c57
commit
a30337f710
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ public interface Villager extends AbstractVillager {
|
|||
/**
|
||||
* Gets the level of this villager.
|
||||
*
|
||||
* A villager with a level <= 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.
|
||||
*
|
||||
* @return this villager's level
|
||||
|
@ -53,11 +53,11 @@ public interface Villager extends AbstractVillager {
|
|||
/**
|
||||
* Sets the level of this villager.
|
||||
*
|
||||
* A villager with a level <= 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.
|
||||
*
|
||||
* @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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue