Add API to get a players experience to level (getExpToLevel). Implements BUKKIT-1906
This is the total experience one needs to gain a level.
This commit is contained in:
parent
eb3f24011f
commit
77bdf88cd6
@ -146,4 +146,11 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv
|
|||||||
* @return Whether they are blocking.
|
* @return Whether they are blocking.
|
||||||
*/
|
*/
|
||||||
public boolean isBlocking();
|
public boolean isBlocking();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the total amount of experience required for the player to level
|
||||||
|
*
|
||||||
|
* @return Experience required to level up
|
||||||
|
*/
|
||||||
|
public int getExpToLevel();
|
||||||
}
|
}
|
||||||
|
@ -764,4 +764,8 @@ public class TestPlayer implements Player {
|
|||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getExpToLevel() {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user