From 07ec5a58a437bc999e51fa1961d2901c2c767b08 Mon Sep 17 00:00:00 2001 From: GodOfPro <1387ilia@gmail.com> Date: Tue, 11 Apr 2023 16:30:58 +0430 Subject: [PATCH] Add Mob Experience reward API --- paper-api/src/main/java/org/bukkit/entity/Mob.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Mob.java b/paper-api/src/main/java/org/bukkit/entity/Mob.java index d55250d820..256e5645bc 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Mob.java +++ b/paper-api/src/main/java/org/bukkit/entity/Mob.java @@ -220,4 +220,13 @@ public interface Mob extends LivingEntity, Lootable { */ public void setLeftHanded(boolean leftHanded); // Paper end - left-handed API + + // Paper start - mob xp reward API + /** + * Gets the amount of experience the mob will possibly drop. This value is randomized and it can give different results + * + * @return the amount of experience the mob will possibly drop + */ + public int getPossibleExperienceReward(); + // Paper end - mob xp reward API }