Class RecursivePickaxe

java.lang.Object
com.sk89q.worldedit.command.tool.RecursivePickaxe
All Implemented Interfaces:
BlockTool, Tool

public class RecursivePickaxe extends Object implements BlockTool
A pickaxe mode that recursively finds adjacent blocks within range of an initial block and of the same type.
  • Constructor Details

    • RecursivePickaxe

      public RecursivePickaxe(double range)
  • Method Details

    • canUse

      public boolean canUse(Actor player)
      Description copied from interface: Tool
      Checks to see if the player can still be using this tool (considering permissions and such).
      Specified by:
      canUse in interface Tool
      Parameters:
      player - the actor
      Returns:
      true if use is permitted
    • actPrimary

      public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, @Nullable Direction face)
      Description copied from interface: BlockTool
      Perform the primary action of this tool.
      Specified by:
      actPrimary in interface BlockTool
      Parameters:
      server - The platform
      config - The config instance
      player - The player
      session - The local session
      clicked - The location that was clicked
      face - The face that was clicked
      Returns:
      true to cancel the original event which triggered this action (if possible)