@FunctionalInterface public interface EntityKillHandler extends ItemHandler
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.Modifier and Type | Method and Description |
---|---|
default java.lang.Class<? extends ItemHandler> |
getIdentifier()
This method returns the identifier for this
ItemHandler . |
void |
onKill(EntityDeathEvent e,
Entity entity,
Player killer,
ItemStack item) |
isPrivate
void onKill(EntityDeathEvent e, Entity entity, Player killer, ItemStack item)
default java.lang.Class<? extends ItemHandler> getIdentifier()
ItemHandler
ItemHandler
.
We use a Class
identifier to group Item Handlers together.getIdentifier
in interface ItemHandler
Class
identifier for this ItemHandler