类 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 HandlerListGets theInventorythat the Hopper will use for its source/attached Container.Gets the Block that is being searched for an inventory.voidsetInventory(@Nullable Inventory inventory) Set theInventorythat the Hopper will use for its source/attached Container.从类继承的方法 org.bukkit.event.block.BlockEvent
getBlock从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
HopperInventorySearchEvent
-
-
方法详细资料
-
setInventory
Set theInventorythat the Hopper will use for its source/attached Container.- 参数:
inventory- the inventory to use
-
getInventory
Gets theInventorythat 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
-