Class AreaPickaxe

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

public class AreaPickaxe extends Object implements BlockTool
A super pickaxe mode that will remove blocks in an area.
  • Constructor Details

    • AreaPickaxe

      public AreaPickaxe(int 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)
      Description copied from interface: BlockTool
      Perform the primary action of this tool.
      Specified by:
      actPrimary in interface BlockTool
      Returns:
      true to cancel the original event which triggered this action (if possible)