类 TradeSelectEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.InventoryInteractEvent
org.bukkit.event.inventory.TradeSelectEvent
- 所有已实现的接口:
Cancellable
This event is called whenever a player clicks a new trade on the trades
sidebar.
This event allows the user to get the index of the trade, letting them get the MerchantRecipe via the Merchant.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result -
字段概要
从类继承的字段 org.bukkit.event.inventory.InventoryEvent
transaction -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static @NotNull HandlerListintgetIndex()Used to get the index of the trade the player clicked on.获取此事件涉及的主要物品栏.Get the Merchant involved.getView()获取物品栏本身的 InventoryView 对象。从类继承的方法 org.bukkit.event.inventory.InventoryInteractEvent
getResult, getWhoClicked, isCancelled, setCancelled, setResult从类继承的方法 org.bukkit.event.inventory.InventoryEvent
getViewers从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
TradeSelectEvent
-
-
方法详细资料
-
getIndex
public int getIndex()Used to get the index of the trade the player clicked on.- 返回:
- The index of the trade clicked by the player
-
getInventory
从类复制的说明:InventoryEvent获取此事件涉及的主要物品栏.原文:Gets the primary Inventory involved in this transaction
- 覆盖:
getInventory在类中InventoryEvent- 返回:
- 顶部背包
-
getMerchant
Get the Merchant involved.- 返回:
- the Merchant
-
getView
从类复制的说明:InventoryEvent获取物品栏本身的 InventoryView 对象。原文:Gets the view object itself
- 覆盖:
getView在类中InventoryEvent- 返回:
- InventoryView
-
getHandlers
- 覆盖:
getHandlers在类中InventoryEvent
-
getHandlerList
-