|Modifier and Type||Method||Description|
Get the currently active recipe.
Get the index of the currently selected recipe.
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getName, getSize, getStorageContents, getTitle, getType, getViewers, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
@Nullable MerchantRecipe getSelectedRecipe()
This will be
null 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.
Copyright © 2019. All rights reserved.