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 ClassesNested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class BlockEvent
block -
Constructor Summary
ConstructorsConstructorDescriptionHopperInventorySearchEvent(@Nullable 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 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.Methods inherited from class BlockEvent
getBlockMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
HopperInventorySearchEvent
-
-
Method Details
-
setInventory
-
getInventory
-
getContainerType
Gets the Container type the Hopper is searching for.- Returns:
- the container type being searched for
-
getSearchBlock
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-