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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session) Perform the primary action of this trace tool.booleanactSecondary(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:DoubleActionTraceToolPerform the secondary function of this tool.- Specified by:
actSecondaryin interfaceDoubleActionTraceTool- Overrides:
actSecondaryin 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:TraceToolPerform the primary action of this trace tool.- Specified by:
actPrimaryin interfaceTraceTool- Overrides:
actPrimaryin 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)
-