Package com.sk89q.worldedit.command.tool
Class DistanceWand
java.lang.Object
com.sk89q.worldedit.command.tool.BrushTool
com.sk89q.worldedit.command.tool.DistanceWand
- All Implemented Interfaces:
MovableTool
,ResettableTool
,ScrollTool
,DoubleActionTraceTool
,Tool
,TraceTool
,Serializable
A wand that can be used at a distance.
- See Also:
-
Field Summary
Fields inherited from class com.sk89q.worldedit.command.tool.BrushTool
DEFAULT_RANGE, MAX_RANGE, range
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
actPrimary
(Platform server, LocalConfiguration config, Player player, LocalSession session) Perform the primary action of this trace tool.boolean
actSecondary
(Platform server, LocalConfiguration config, Player player, LocalSession session) Perform the secondary function of this tool.Methods inherited from class com.sk89q.worldedit.command.tool.BrushTool
act, canUse, getBrush, getContext, getMask, getMaterial, getOffHand, getPosition, getPrimary, getRange, getSecondary, getSize, getSourceMask, getTargetMode, getTargetOffset, getTraceMask, getTransform, increment, isSet, move, reset, setBrush, setContext, setFill, setHolder, setMask, setPrimary, setRange, setScrollAction, setSecondary, setSize, setSize, setSourceMask, setTargetMode, setTargetOffset, setTraceMask, setTransform, update
-
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 interfaceDoubleActionTraceTool
- Overrides:
actSecondary
in classBrushTool
- Parameters:
server
- The platformconfig
- The config instanceplayer
- The playersession
- 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 interfaceTraceTool
- Overrides:
actPrimary
in classBrushTool
- Parameters:
server
- The platformconfig
- The config instanceplayer
- The playersession
- The local session- Returns:
- true to cancel the original event which triggered this action (if possible)
-