mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Add Mob Experience reward API
This commit is contained in:
parent
915f048f00
commit
3079b71627
1 changed files with 7 additions and 0 deletions
|
@ -168,4 +168,11 @@ public abstract class CraftMob extends CraftLivingEntity implements Mob {
|
|||
this.getHandle().setAggressive(aggressive);
|
||||
}
|
||||
// Paper end
|
||||
|
||||
// Paper start
|
||||
@Override
|
||||
public int getPossibleExperienceReward() {
|
||||
return getHandle().getExperienceReward((net.minecraft.server.level.ServerLevel) this.getHandle().level(), null);
|
||||
}
|
||||
// Paper end
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue