Java Code Examples for org.bukkit.Material#PISTON_STICKY_BASE
The following examples show how to use
org.bukkit.Material#PISTON_STICKY_BASE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PistonBaseMaterial.java From Kettle with GNU General Public License v3.0 | 2 votes |
/** * Checks if this piston base is sticky, and returns true if so * * @return true if this piston is "sticky", or false */ public boolean isSticky() { return this.getItemType() == Material.PISTON_STICKY_BASE; }
Example 2
Source File: BlockPistonEvent.java From Kettle with GNU General Public License v3.0 | 2 votes |
/** * Returns true if the Piston in the event is sticky. * * @return stickiness of the piston */ public boolean isSticky() { return block.getType() == Material.PISTON_STICKY_BASE || block.getType() == Material.PISTON_MOVING_PIECE; }