Interface ItemDropHandler

All Superinterfaces:
GlobalItemHandler, ItemHandler
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 ItemDropHandler extends GlobalItemHandler
The ItemDropHandler is a GlobalItemHandler which listens to an Item being dropped.
Author:
Linox, TheBusyBiscuit
  • Method Summary

    Modifier and Type
    Method
    Description
    default Class<? extends ItemHandler>
    This method returns the identifier for this ItemHandler.
    boolean
    onItemDrop(org.bukkit.event.player.PlayerDropItemEvent e, org.bukkit.entity.Player p, org.bukkit.entity.Item item)
     

    Methods inherited from interface io.github.thebusybiscuit.slimefun4.api.items.ItemHandler

    validate
  • Method Details

    • onItemDrop

      @ParametersAreNonnullByDefault boolean onItemDrop(org.bukkit.event.player.PlayerDropItemEvent e, org.bukkit.entity.Player p, org.bukkit.entity.Item item)
    • getIdentifier

      default Class<? extends ItemHandler> getIdentifier()
      Description copied from interface: ItemHandler
      This method returns the identifier for this ItemHandler. We use a Class identifier to group Item Handlers together.
      Specified by:
      getIdentifier in interface ItemHandler
      Returns:
      The Class identifier for this ItemHandler