BeheadingEvent

The Beheading Event is an event called when a mob drops its head.

Description
The BeheadingEvent is a small class. It adds two extra fields: the keepInventoryOverride field, which if true will drop a player's head regardless of keepInventory being set to true; and the skullOwner field, which gets the mob that got killed.

Constructor
BeheadingEvent(Player who, LivingEntity skullOwner, int level, List newDrops, List originalDrops, boolean override, boolean keepInventoryOverride)
 * // Player who - the player who killed the mob
 * // LivingEntity skullOwner - the mob dropping their skull
 * // int level - the level of Beheading used to kill the mob
 * // List newDrops - the skulls being added to the drops
 * // List oldDrops - the other items being dropped by this mob
 * // boolean override - on true, oldDrops will not drop from the death event; on false, oldDrops and newDrops will combine to form the drops
 * // boolean keepInventoryOverride - on true, killed players will still drop their heads when gamerule "keepInventory" is true; on false, when "keepInventory" is true, no skulls will drop from players

Implements
None

Extends
DropEvent

boolean isKeepInventoryOverride
Gets the set keepInventoryOverride value

public void setKeepInventoryOverride(boolean keepInventoryOverride)
Sets the keepInventoryOverride value to the new value

public LivingEntity getSkullOwner
Gets the entity whose skull is dropping