Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
block/Dispenser.java
1 package org.bukkit.block;
2 
4 
5 /**
6  * Represents a dispenser.
7  */
8 public interface Dispenser extends BlockState, ContainerBlock {
9 
10  /**
11  * Gets the BlockProjectileSource object for this dispenser.
12  * <p>
13  * If the block is no longer a dispenser, this will return null.
14  *
15  * @return a BlockProjectileSource if valid, otherwise null
16  */
18 
19  /**
20  * Attempts to dispense the contents of this block.
21  * <p>
22  * If the block is no longer a dispenser, this will return false.
23  *
24  * @return true if successful, otherwise false
25  */
26  public boolean dispense();
27 }
BlockProjectileSource getBlockProjectileSource()