程序包 org.bukkit.event.inventory

# 类 HopperInventorySearchEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.inventory.HopperInventorySearchEvent

public class HopperInventorySearchEvent extends BlockEvent
Event that gets called each time a Hopper attempts to find its source/attached containers.

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  类
  说明
  `static enum`
  `HopperInventorySearchEvent.ContainerType`

  ## 从类继承的嵌套类/接口 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)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull HopperInventorySearchEvent.ContainerType`
  `getContainerType()`
  Gets the Container type the Hopper is searching for.
  `static @NotNull HandlerList`
  `getHandlerList()`
  `@NotNull HandlerList`
  `getHandlers()`
  `@Nullable Inventory`
  `getInventory()`
  Gets the `Inventory` that the Hopper will use for its source/attached Container.
  `@NotNull Block`
  `getSearchBlock()`
  Gets the Block that is being searched for an inventory.
  `void`
  `setInventory(@Nullable Inventory inventory)`
  Set the `Inventory` that the Hopper will use for its source/attached Container.

  ### 从类继承的方法 org.bukkit.event.block.BlockEvent

  `getBlock`

  ### 从类继承的方法 org.bukkit.event.Event

  `getEventName, isAsynchronous`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### HopperInventorySearchEvent

    public HopperInventorySearchEvent(@NotNull @NotNull Inventory inventory, @NotNull @NotNull HopperInventorySearchEvent.ContainerType containerType, @NotNull @NotNull Block hopper, @NotNull @NotNull Block searchBlock)

- ## 方法详细资料

  - ### setInventory

    public void setInventory(@Nullable @Nullable Inventory inventory)
    Set the `Inventory` that the Hopper will use for its source/attached Container.
    参数:
      `inventory` - the inventory to use

  - ### getInventory

    @Nullable public @Nullable Inventory getInventory()
    Gets the `Inventory` that the Hopper will use for its source/attached Container.
    返回:
      the inventory which will be used

  - ### getContainerType

    @NotNull public @NotNull HopperInventorySearchEvent.ContainerType getContainerType()
    Gets the Container type the Hopper is searching for.
    返回:
      the container type being searched for

  - ### getSearchBlock

    @NotNull public @NotNull Block getSearchBlock()
    Gets the Block that is being searched for an inventory.
    返回:
      block being searched for an inventory

  - ### getHandlers

    @NotNull public @NotNull HandlerList getHandlers()
    指定者:
      `getHandlers` 在类中 `Event`

  - ### getHandlerList

    @NotNull public static @NotNull HandlerList getHandlerList()