Interface ItemDropHandler
-
- All Superinterfaces:
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 ItemHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Class<? extends ItemHandler>
getIdentifier()
This method returns the identifier for thisItemHandler
.default boolean
isPrivate()
This method is used to determine whether thisItemHandler
can be safely associated with one particularSlimefunItem
.boolean
onItemDrop(PlayerDropItemEvent e, Player p, Item item)
-
-
-
Method Detail
-
onItemDrop
boolean onItemDrop(PlayerDropItemEvent e, Player p, Item item)
-
getIdentifier
default Class<? extends ItemHandler> getIdentifier()
Description copied from interface:ItemHandler
This method returns the identifier for thisItemHandler
. We use aClass
identifier to group Item Handlers together.- Specified by:
getIdentifier
in interfaceItemHandler
- Returns:
- The
Class
identifier for thisItemHandler
-
isPrivate
default boolean isPrivate()
Description copied from interface:ItemHandler
This method is used to determine whether thisItemHandler
can be safely associated with one particularSlimefunItem
. Should thisItemHandler
not be private, then it will never be permanently linked to aSlimefunItem
.- Specified by:
isPrivate
in interfaceItemHandler
- Returns:
- Whether this
ItemHandler
is considered private.
-
-