It would be useful if the new Piglin Bartering mechanic had some APIs available.
For example:
- A PiglinBarterEvent which would expose a payment and result ItemStack, and fire after picking up the payment but before the result is dropped so that the event could modify the result.
- Methods in the Piglin Interface to get or set a list of bartering recipes, similar to the getRecipes() and setRecipes(ArrayList<MerchantRecipe>) in the Merchant Interface. This could allow for picking up of items set as recipe payments.