public interface Dispenser extends BlockState, InventoryHolder, Lockable, Nameable, LootableInventory
Modifier and Type | Method and Description |
---|---|
boolean |
dispense()
Attempts to dispense the contents of this block.
|
BlockProjectileSource |
getBlockProjectileSource()
Gets the BlockProjectileSource object for this dispenser.
|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
getInventory
getCustomName, setCustomName
getLastFilled, getLastLooted, getLastLooted, getNextRefill, hasBeenFilled, hasPendingRefill, hasPlayerLooted, hasPlayerLooted, isRefillEnabled, setHasPlayerLooted, setHasPlayerLooted, setNextRefill
clearLootTable, getLootTableName, getLootTableSeed, hasLootTable, setLootTable, setLootTable, setLootTableSeed
BlockProjectileSource getBlockProjectileSource()
If the block is no longer a dispenser, this will return null.
boolean dispense()
If the block is no longer a dispenser, this will return false.
Copyright © 2022. All rights reserved.