类 HopperInventorySearchEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.inventory.HopperInventorySearchEvent
每次漏斗尝试查找其源/附加容器时调用的事件。
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result -
字段概要
从类继承的字段 org.bukkit.event.block.BlockEvent
block -
构造器概要
构造器构造器说明HopperInventorySearchEvent(@NotNull Inventory inventory, @NotNull HopperInventorySearchEvent.ContainerType containerType, @NotNull Block hopper, @NotNull Block searchBlock) -
方法概要
修饰符和类型方法说明获取漏斗正在搜索的容器类型。static @NotNull HandlerList获取漏斗将用于其源/附加容器的Inventory。获取正在被搜索物品栏的方块。voidsetInventory(@Nullable Inventory inventory) 设置漏斗将用于其源/附加容器的Inventory。从类继承的方法 org.bukkit.event.block.BlockEvent
getBlock从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
HopperInventorySearchEvent
-
-
方法详细资料
-
setInventory
设置漏斗将用于其源/附加容器的Inventory。- 参数:
inventory- 要使用的物品栏原文:Set the
Inventorythat the Hopper will use for its source/attached Container.
-
getInventory
获取漏斗将用于其源/附加容器的Inventory。- 返回:
- 将被使用的物品栏
原文:Gets the
Inventorythat the Hopper will use for its source/attached Container.
-
getContainerType
获取漏斗正在搜索的容器类型。- 返回:
- 正在搜索的容器类型
原文:Gets the Container type the Hopper is searching for.
-
getSearchBlock
获取正在被搜索物品栏的方块。- 返回:
- 正在被搜索物品栏的方块
原文:Gets the Block that is being searched for an inventory.
-
getHandlers
- 指定者:
getHandlers在类中Event
-
getHandlerList
-