Class DropItem

java.lang.Object
nl.pim16aap2.lightkeeper.protocol.DropItem

public final class DropItem extends Object
Drops the player's main-hand item into the world.

Fires a PlayerDropItemEvent. If the event is cancelled the item entity is removed and the player's inventory is unchanged. If the event is not cancelled the item entity stays in the world and one item is consumed from the player's main hand.