Commits
Xor Boole authored and md_5 committed 972b9fea860
89 89 | */ |
90 90 | public InventoryView openEnchanting(Location location, boolean force); |
91 91 | |
92 92 | /** |
93 93 | * Opens an inventory window to the specified inventory view. |
94 94 | * |
95 95 | * @param inventory The view to open |
96 96 | */ |
97 97 | public void openInventory(InventoryView inventory); |
98 98 | |
99 + | /** |
100 + | * Starts a trade between the player and the villager. |
101 + | * |
102 + | * Note that only one player may trade with a villager at once. You must use |
103 + | * the force parameter for this. |
104 + | * |
105 + | * @param trader The merchant to trade with. Cannot be null. |
106 + | * @param force whether to force the trade even if another player is trading |
107 + | * @return The newly opened inventory view, or null if it could not be |
108 + | * opened. |
109 + | */ |
110 + | public InventoryView openMerchant(Villager trader, boolean force); |
111 + | |
99 112 | /** |
100 113 | * Force-closes the currently open inventory view for this player, if any. |
101 114 | */ |
102 115 | public void closeInventory(); |
103 116 | |
104 117 | /** |
105 118 | * Returns the ItemStack currently in your hand, can be empty. |
106 119 | * |
107 120 | * @return The ItemStack of the item you are currently holding. |
108 121 | * @deprecated Humans may now dual wield in their off hand, use explicit |