Changes

Summary

  1. SPIGOT-5766: Updates related to the villager trading changes introduced (details)
Commit f3a8a4ce43df2c00a9f44400486d577665cdf1fa by md_5 (md_5)
SPIGOT-5766: Updates related to the villager trading changes introduced in MC 1.14.

* The VillagerReplenishTradeEvent is now called whenever a villager restocks one of its trades. Previously, it was called in some (but not all) cases in which a villager updates the special price values of its merchant recipes.
* VillagerReplenishTradeEvent#get/setBonus have been deprecated and #setBonus has no effect anymore. The way villagers restock their trades has changed in MC 1.14: Instead of adjusting the max uses of their trades, they reset their uses to 0. #getBonus returns the value of MerchantRecipe#getUses now.
* Updated various outdated and inaccurate javadoc in MerchantRecipe.
The file was modifiedsrc/main/java/org/bukkit/event/entity/VillagerReplenishTradeEvent.java
The file was modifiedsrc/main/java/org/bukkit/inventory/MerchantRecipe.java