接口 MerchantInventory
代表玩家和商人之间的用户界面接口.
该Inventory的持有者是拥有的村民, 如果玩家正在于由插件创造的Inventory进行交易, 则Holder(持有者)将为null
该Inventory的持有者是拥有的村民, 如果玩家正在于由插件创造的Inventory进行交易, 则Holder(持有者)将为null
原文: 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.
-
方法概要
修饰符和类型方法说明获取当前选择的交易配方.int
获取当前的交易配方的索引.从接口继承的方法 org.bukkit.inventory.Inventory
addItem, all, all, all, clear, clear, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getName, getSize, getStorageContents, getTitle, getType, getViewers, iterator, iterator, remove, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
方法详细资料
-
getSelectedRecipeIndex
int getSelectedRecipeIndex()获取当前的交易配方的索引. 原文: Get the index of the currently selected recipe.- 返回:
- 当前所选的交易配方的索引
-
getSelectedRecipe
MerchantRecipe getSelectedRecipe()获取当前选择的交易配方. 原文: Get the currently selected recipe.- 返回:
- 当前选择的交易配方
-