Interface MerchantInventory

  • All Superinterfaces:
    Inventory, Iterable<ItemStack>

    public interface MerchantInventory
    extends Inventory
    Represents a trading inventory between a player and a merchant.
    The holder of this Inventory is the owning Villager, or null if the player is trading with a merchant created by a plugin.
    • Method Detail

      • getSelectedRecipeIndex

        int getSelectedRecipeIndex()
        Get the index of the currently selected recipe.
        Returns:
        the index of the currently selected recipe
      • getSelectedRecipe

        MerchantRecipe getSelectedRecipe()
        Get the currently selected recipe.
        Returns:
        the currently selected recipe