mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 19:25:49 -07:00
Clarify MerchantInventory#getSelectedRecipe.
By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
@@ -16,9 +16,15 @@ public interface MerchantInventory extends Inventory {
|
|||||||
int getSelectedRecipeIndex();
|
int getSelectedRecipeIndex();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the currently selected recipe.
|
* Get the currently active recipe.
|
||||||
|
* <p>
|
||||||
|
* This will be <code>null</code> if the items provided by the player do
|
||||||
|
* not match the ingredients of the selected recipe. This does not
|
||||||
|
* necessarily match the recipe selected by the player: If the player has
|
||||||
|
* selected the first recipe, the merchant will search all of its offers
|
||||||
|
* for a matching recipe to activate.
|
||||||
*
|
*
|
||||||
* @return the currently selected recipe
|
* @return the currently active recipe
|
||||||
*/
|
*/
|
||||||
MerchantRecipe getSelectedRecipe();
|
MerchantRecipe getSelectedRecipe();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user