
org.bukkit.block.Dispenser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package org.bukkit.block;
import org.bukkit.projectiles.BlockProjectileSource;
/**
* Represents a dispenser.
*/
public interface Dispenser extends BlockState, ContainerBlock {
/**
* Gets the BlockProjectileSource object for this dispenser.
*
* If the block is no longer a dispenser, this will return null.
*
* @return a BlockProjectileSource if valid, otherwise null
*/
BlockProjectileSource getBlockProjectileSource();
/**
* Attempts to dispense the contents of this block.
*
* If the block is no longer a dispenser, this will return false.
*
* @return true if successful, otherwise false
*/
boolean dispense();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy