mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
Clarify MerchantInventory#getSelectedRecipe.
By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
parent
90b6068b6b
commit
3ce97266e5
1 changed files with 8 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue