Package com.sk89q.worldedit.command.tool
Class LongRangeBuildTool
java.lang.Object
com.sk89q.worldedit.command.tool.BrushTool
com.sk89q.worldedit.command.tool.LongRangeBuildTool
- All Implemented Interfaces:
MovableTool,ResettableTool,ScrollTool,DoubleActionTraceTool,Tool,TraceTool,Serializable
A tool that can place (or remove) blocks 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.booleanChecks to see if the player can still be using this tool (considering permissions and such).Methods inherited from class com.sk89q.worldedit.command.tool.BrushTool
act, 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
-
LongRangeBuildTool
-
-
Method Details
-
canUse
Description copied from interface:ToolChecks to see if the player can still be using this tool (considering permissions and such). -
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)
-