Class DistanceWand

java.lang.Object
com.sk89q.worldedit.command.tool.BrushTool
com.sk89q.worldedit.command.tool.DistanceWand
All Implemented Interfaces:
DoubleActionTraceTool, Tool, TraceTool

public class DistanceWand extends BrushTool implements DoubleActionTraceTool
A wand that can be used at a distance.
  • Constructor Details

    • DistanceWand

      public DistanceWand()
  • Method Details

    • actSecondary

      public boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session)
      Description copied from interface: DoubleActionTraceTool
      Perform the secondary function of this tool.
      Specified by:
      actSecondary in interface DoubleActionTraceTool
      Parameters:
      server - The platform
      config - The config instance
      player - The player
      session - The local session
      Returns:
      true to cancel the original event which triggered this action (if possible)
    • actPrimary

      public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session)
      Description copied from interface: TraceTool
      Perform the primary action of this trace tool.
      Specified by:
      actPrimary in interface TraceTool
      Overrides:
      actPrimary in class BrushTool
      Parameters:
      server - The platform
      config - The config instance
      player - The player
      session - The local session
      Returns:
      true to cancel the original event which triggered this action (if possible)