Interface HologramLinePickupListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface HologramLinePickupListener
The listener class for HologramLinePickupEvent.

This is not a Bukkit listener, it must be set with ItemHologramLine.setPickupListener(HologramLinePickupListener).

Since:
1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onPickup(@NotNull HologramLinePickupEvent pickupEvent)
    Invoked when a player is being in pickup range of the item line.
  • Method Details

    • onPickup

      void onPickup(@NotNull @NotNull HologramLinePickupEvent pickupEvent)
      Invoked when a player is being in pickup range of the item line. Note that this method is invoked repeatedly every tick until the player moves out of range, the listener is removed, the item line is no longer visible to the player, or the item line is removed.
      Parameters:
      pickupEvent - the event data
      Since:
      1