BlockState, Container, InventoryHolder, Lockable, Lootable, Lootable, LootableBlockInventory, LootableInventory, Metadatable, Nameablepublic interface Dispenser extends Container, Nameable, LootableBlockInventory
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | dispense() | Attempts to dispense the contents of the dispenser. | 
| BlockProjectileSource | getBlockProjectileSource() | Gets the BlockProjectileSource object for the dispenser. | 
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updategetInventory, getSnapshotInventorygetLootTableName, getLootTableSeed, setLootTable, setLootTable, setLootTableSeedclearLootTable, getLootTable, getSeed, hasLootTable, setLootTable, setLootTable, setSeedgetBlockgetLastFilled, getLastLooted, getLastLooted, getNextRefill, hasBeenFilled, hasPendingRefill, hasPlayerLooted, hasPlayerLooted, isRefillEnabled, setHasPlayerLooted, setHasPlayerLooted, setNextRefillgetMetadata, hasMetadata, removeMetadata, setMetadatagetCustomName, setCustomNameBlockProjectileSource getBlockProjectileSource()
If the block represented by this state is no longer a dispenser, this will return null.
java.lang.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.
java.lang.IllegalStateException - if this block state is not placedCopyright © 2018. All rights reserved.