java.lang.Object
com.sk89q.worldedit.command.tool.BrushTool
com.fastasyncworldedit.core.command.tool.brush.InspectBrush
All Implemented Interfaces:
MovableTool, ResettableTool, ScrollTool, DoubleActionTraceTool, Tool, TraceTool, Serializable

public class InspectBrush extends BrushTool
See Also:
  • Constructor Details

    • InspectBrush

      public InspectBrush()
      Construct the tool.
  • 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
      Overrides:
      actSecondary 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)
    • 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)
    • getTarget

      public Vector3 getTarget(Player player, boolean adjacent)
    • perform

      public boolean perform(Player player, LocalSession session, boolean rightClick)
    • canUse

      public boolean canUse(Actor actor)
      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
      Overrides:
      canUse in class BrushTool
      Parameters:
      actor - the actor
      Returns:
      true if use is permitted