Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.block.Dispenser Interface Reference
Inheritance diagram for org.bukkit.block.Dispenser:
org.bukkit.block.BlockState org.bukkit.block.ContainerBlock org.bukkit.metadata.Metadatable org.bukkit.inventory.InventoryHolder

Public Member Functions

BlockProjectileSource getBlockProjectileSource ()
boolean dispense ()
- Public Member Functions inherited from org.bukkit.block.BlockState
Block getBlock ()
MaterialData getData ()
Material getType ()
int getTypeId ()
byte getLightLevel ()
World getWorld ()
int getX ()
int getY ()
int getZ ()
Location getLocation ()
Location getLocation (Location loc)
Chunk getChunk ()
void setData (MaterialData data)
void setType (Material type)
boolean setTypeId (int type)
boolean update ()
boolean update (boolean force)
boolean update (boolean force, boolean applyPhysics)
byte getRawData ()
void setRawData (byte data)
- Public Member Functions inherited from org.bukkit.inventory.InventoryHolder
Inventory getInventory ()

Detailed Description

Represents a dispenser.

Definition at line 8 of file block/Dispenser.java.

Member Function Documentation

boolean org.bukkit.block.Dispenser.dispense ( )

Attempts to dispense the contents of this block.

If the block is no longer a dispenser, this will return false.

true if successful, otherwise false
BlockProjectileSource org.bukkit.block.Dispenser.getBlockProjectileSource ( )

Gets the BlockProjectileSource object for this dispenser.

If the block is no longer a dispenser, this will return null.

a BlockProjectileSource if valid, otherwise null

The documentation for this interface was generated from the following file: