Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Dropper.java
1 package org.bukkit.block;
2 
4 
5 /**
6  * Represents a dropper.
7  */
8 public interface Dropper extends BlockState, InventoryHolder {
9  /**
10  * Tries to drop a randomly selected item from the Dropper's inventory,
11  * following the normal behavior of a Dropper.
12  * <p>
13  * Normal behavior of a Dropper is as follows:
14  * <p>
15  * If the block that the Dropper is facing is an InventoryHolder or
16  * ContainerBlock the randomly selected ItemStack is placed within that
17  * Inventory in the first slot that's available, starting with 0 and
18  * counting up. If the inventory is full, nothing happens.
19  * <p>
20  * If the block that the Dropper is facing is not an InventoryHolder or
21  * ContainerBlock, the randomly selected ItemStack is dropped on
22  * the ground in the form of an {@link org.bukkit.entity.Item Item}.
23  */
24  public void drop();
25 }