Package org.bukkit.event.inventory
Class 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.block.BlockEvent
block
-
Constructor Summary
ConstructorDescriptionHopperInventorySearchEvent
(@NotNull Inventory inventory, @NotNull HopperInventorySearchEvent.ContainerType containerType, @NotNull Block hopper, @NotNull Block searchBlock) -
Method Summary
Modifier and TypeMethodDescriptionGets 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.Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
HopperInventorySearchEvent
-
-
Method Details
-
setInventory
Set theInventory
that the Hopper will use for its source/attached Container.- Parameters:
inventory
- the inventory to use
-
getInventory
Gets theInventory
that the Hopper will use for its source/attached Container.- Returns:
- the inventory which will be used
-
getContainerType
Gets the Container type the Hopper is searching for.- Returns:
- the container type being searched for
-
getSearchBlock
Gets the Block that is being searched for an inventory.- Returns:
- block being searched for an inventory
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-