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.
限定符和类型 | 方法和说明 |
---|---|
MerchantRecipe |
getSelectedRecipe()
获取当前选择的交易配方.
|
int |
getSelectedRecipeIndex()
获取当前的交易配方的索引.
|
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
int getSelectedRecipeIndex()
MerchantRecipe getSelectedRecipe()