Class MobDropHeadEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- org.bukkit.event.entity.EntityEvent
-
- org.shininet.bukkit.playerheads.events.LivingEntityDropHeadEvent
-
- org.shininet.bukkit.playerheads.events.MobDropHeadEvent
-
- All Implemented Interfaces:
Cancellable
,DropHeadEvent
public class MobDropHeadEvent extends LivingEntityDropHeadEvent
Event created by the PlayerHeads plugin when a Mob is beheaded. Cancellable.- Since:
- 3.11
- Author:
- meiskam
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Field Summary
-
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
-
-
Constructor Summary
Constructors Constructor Description MobDropHeadEvent(LivingEntity mob, ItemStack drop)
Constructs the eventMobDropHeadEvent(Event cause, LivingEntity mob, LivingEntity killer, ItemStack drop)
Constructs the event
-
Method Summary
-
Methods inherited from class org.shininet.bukkit.playerheads.events.LivingEntityDropHeadEvent
getCause, getDrop, getEntity, getHandlerList, getHandlers, getKillerEntity, isCancelled, setCancelled, setDrop
-
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntityType
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Constructor Detail
-
MobDropHeadEvent
public MobDropHeadEvent(LivingEntity mob, ItemStack drop)
Constructs the event- Parameters:
mob
- the mob that was beheadeddrop
- the head item to be dropped.
-
MobDropHeadEvent
public MobDropHeadEvent(@Nullable Event cause, LivingEntity mob, LivingEntity killer, ItemStack drop)
Constructs the event- Parameters:
cause
- the event which caused the beheading event, or null.mob
- the mob that was beheadedkiller
- the killer responsible for the death of the mob. As determined by the plugin (may differ from entity.getKiller())drop
- the head item to be dropped.- Since:
- 5.2.14-SNAPSHOT
-
-