bukkit World Manipulation Dropping an Item


Example

The following methods can be used to drop an Item somewhere in the world:

Item dropItem(Location loc, ItemStack is);
Item dropItemNaturally(Location loc, ItemStack is);

dropItem means dropping an Item exactly at the location, returning an Item object.

dropItemNaturally means dropping the Item at the location, but with a random offset, meaning it won't be exactly at the location, but very close nearby. This is made to simulate an item being dropped by an entity or a block such as a Dispenser.