Interface HopperEvent

All Superinterfaces:
Event
All Known Subinterfaces:
HopperMoveItemEvent, HopperPickupItemEvent

public interface HopperEvent extends Event
Something a hopper does with items: moving them between containers, or picking them up.

Fired on the thread of the region owning the hopper.

Since:
0.1.0
  • Method Details

    • world

      World world()
      Returns the world of the hopper.
      Returns:
      the world of the hopper
      Since:
      0.1.0
    • position

      BlockPosition position()
      Returns where the hopper is.
      Returns:
      where the hopper is
      Since:
      0.1.0
    • hopper

      HopperInventory hopper()
      Returns the slots of the hopper.
      Returns:
      the slots of the hopper
      Since:
      0.1.0