diff --git a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java index 7ad0cf836e..e1f9f5a380 100644 --- a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java @@ -146,4 +146,11 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv * @return Whether they are blocking. */ public boolean isBlocking(); + + /** + * Get the total amount of experience required for the player to level + * + * @return Experience required to level up + */ + public int getExpToLevel(); } diff --git a/paper-api/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java b/paper-api/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java index 061a5e06b7..4de6dd2a33 100644 --- a/paper-api/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java +++ b/paper-api/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java @@ -764,4 +764,8 @@ public class TestPlayer implements Player { public boolean isValid() { throw new UnsupportedOperationException("Not supported yet."); } + + public int getExpToLevel() { + throw new UnsupportedOperationException("Not supported yet."); + } }