Interface HopperPickupItemEvent
- All Superinterfaces:
Cancellable, Event, HopperEvent
Fired when a hopper is about to pick up an item lying above it.
Cancelling it leaves the item where it is; the event fires again on the next game tick the item is still there.
- Since:
- 0.1.0
-
Method Summary
Methods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface HopperEvent
hopper, position, world
-
Method Details
-
item
ItemEntity item()Returns the item entity above the hopper.- Returns:
- the item entity above the hopper
- Since:
- 0.1.0
-
taken
ItemStack taken()Returns what goes into the hopper: the whole stack of the item entity, or the part of it that fits; the rest stays where it lies.- Returns:
- what goes into the hopper: the whole stack of the item entity, or the part of it that fits; the rest stays where it lies
- Since:
- 0.1.0
-