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
-
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.boolean
Checks 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:Tool
Checks 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: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)
-