mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-28 17:27:20 +01:00
Add Mob Experience reward API
This commit is contained in:
parent
26780d3ac6
commit
07ec5a58a4
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue