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

Public Member Functions

void drop ()
 
- 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 dropper.

Definition at line 8 of file Dropper.java.

Member Function Documentation

void org.bukkit.block.Dropper.drop ( )

Tries to drop a randomly selected item from the Dropper's inventory, following the normal behavior of a Dropper.

Normal behavior of a Dropper is as follows:

If the block that the Dropper is facing is an InventoryHolder or ContainerBlock the randomly selected ItemStack is placed within that Inventory in the first slot that's available, starting with 0 and counting up. If the inventory is full, nothing happens.

If the block that the Dropper is facing is not an InventoryHolder or ContainerBlock, the randomly selected ItemStack is dropped on the ground in the form of an Item.


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