mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-30 03:28:00 +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);
|
this.getHandle().setAggressive(aggressive);
|
||||||
}
|
}
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
@Override
|
||||||
|
public int getPossibleExperienceReward() {
|
||||||
|
return getHandle().getExperienceReward((net.minecraft.server.level.ServerLevel) this.getHandle().level(), null);
|
||||||
|
}
|
||||||
|
// Paper end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue