类 HopperInventorySearchEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.inventory.HopperInventorySearchEvent
Event that gets called each time a Hopper attempts to find its
source/attached containers.
-
嵌套类概要
从类继承的嵌套类/接口 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) -
方法概要
修饰符和类型方法说明Gets the Container type the Hopper is searching for.static @NotNull HandlerList
Gets theInventory
that the Hopper will use for its source/attached Container.Gets the Block that is being searched for an inventory.void
setInventory
(@Nullable Inventory inventory) Set theInventory
that the Hopper will use for its source/attached Container.从类继承的方法 org.bukkit.event.block.BlockEvent
getBlock
从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
HopperInventorySearchEvent
-
-
方法详细资料
-
setInventory
Set theInventory
that the Hopper will use for its source/attached Container.- 参数:
inventory
- the inventory to use
-
getInventory
Gets theInventory
that the Hopper will use for its source/attached Container.- 返回:
- the inventory which will be used
-
getContainerType
Gets the Container type the Hopper is searching for.- 返回:
- the container type being searched for
-
getSearchBlock
Gets the Block that is being searched for an inventory.- 返回:
- block being searched for an inventory
-
getHandlers
- 指定者:
getHandlers
在类中Event
-
getHandlerList
-