Class PlayerDropHeadEvent
- java.lang.Object
 - 
- org.bukkit.event.Event
 - 
- org.bukkit.event.entity.EntityEvent
 - 
- org.shininet.bukkit.playerheads.events.LivingEntityDropHeadEvent
 - 
- org.shininet.bukkit.playerheads.events.PlayerDropHeadEvent
 
 
 
 
 
- 
- All Implemented Interfaces:
 Cancellable,DropHeadEvent
public class PlayerDropHeadEvent extends LivingEntityDropHeadEvent
Event created by the PlayerHeads plugin when a Player 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 PlayerDropHeadEvent(Player player, ItemStack drop)Constructs the eventPlayerDropHeadEvent(Event cause, Player player, LivingEntity killer, ItemStack drop)Constructs the event 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlayergetEntity()Gets the player that was beheaded.- 
Methods inherited from class org.shininet.bukkit.playerheads.events.LivingEntityDropHeadEvent
getCause, getDrop, 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
- 
PlayerDropHeadEvent
public PlayerDropHeadEvent(Player player, ItemStack drop)
Constructs the event- Parameters:
 player- the player that was beheadeddrop- the head item to be dropped
 
- 
PlayerDropHeadEvent
public PlayerDropHeadEvent(@Nullable Event cause, Player player, LivingEntity killer, ItemStack drop)
Constructs the event- Parameters:
 cause- the event which caused the beheading event, or null.player- the player 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
 
 
 - 
 
- 
Method Detail
- 
getEntity
public Player getEntity()
Gets the player that was beheaded.- Overrides:
 getEntityin classLivingEntityDropHeadEvent- Returns:
 - the player that was beheaded.
 
 
 - 
 
 -