Class BlockPiston


public class BlockPiston extends BlockDirectional
  • Constructor Details

    • BlockPiston

      public BlockPiston()
      Creates the basic (non-sticky) piston block type.
    • BlockPiston

      public BlockPiston(boolean sticky)
      Creates a piston block type.
      Parameters:
      sticky - true for the sticky-piston type; false for the basic piston type
  • Method Details

    • blockDestroy

      public void blockDestroy(GlowPlayer player, GlowBlock block, org.bukkit.block.BlockFace face)
      Description copied from class: BlockType
      Called when a player attempts to destroy a block.
      Overrides:
      blockDestroy in class BlockType
      Parameters:
      player - The player interacting
      block - The block the player destroyed
      face - The block face
    • onRedstoneUpdate

      public void onRedstoneUpdate(GlowBlock me)
      Overrides:
      onRedstoneUpdate in class BlockType
    • isSticky

      public boolean isSticky()
      The piston is either non-sticky (default), or has a sticky behavior.
      Returns:
      true if the piston has a sticky base