public interface Dispenser extends Container, Nameable
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispense()
Attempts to dispense the contents of the dispenser.
|
BlockProjectileSource |
getBlockProjectileSource()
Gets the BlockProjectileSource object for the dispenser.
|
getInventory, getSnapshotInventorygetBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, updategetMetadata, hasMetadata, removeMetadata, setMetadatagetCustomName, setCustomNameBlockProjectileSource getBlockProjectileSource()
If the block represented by this state is no longer a dispenser, this will return null.
IllegalStateException - if this block state is not placedboolean dispense()
If the block represented by this state is no longer a dispenser, this will return false.
IllegalStateException - if this block state is not placedCopyright © 2017. All rights reserved.