mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
SPIGOT-4887: Villager level minimum is 1
By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
parent
413964569b
commit
1ac05c8b80
1 changed files with 3 additions and 3 deletions
|
@ -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 <= 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 <= 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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue