Interface EntityKillHandler
- 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.
If this
ItemHandler
is added to a SlimefunItem
it will listen
for any EntityDeathEvent
that was triggered by a Player
using
the SlimefunItem
this EntityKillHandler
was linked to.- Author:
- TheBusyBiscuit
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Class
<? extends ItemHandler> This method returns the identifier for thisItemHandler
.void
onKill
(org.bukkit.event.entity.EntityDeathEvent e, org.bukkit.entity.Entity entity, org.bukkit.entity.Player killer, org.bukkit.inventory.ItemStack item) Methods inherited from interface io.github.thebusybiscuit.slimefun4.api.items.ItemHandler
validate
-
Method Details
-
onKill
void onKill(org.bukkit.event.entity.EntityDeathEvent e, org.bukkit.entity.Entity entity, org.bukkit.entity.Player killer, org.bukkit.inventory.ItemStack item) -
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
-