Package com.sk89q.worldedit.command.tool
Class BlockReplacer
java.lang.Object
com.sk89q.worldedit.command.tool.BlockReplacer
- All Implemented Interfaces:
BlockTool,DoubleActionBlockTool,Tool
A mode that replaces one block.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, Direction face) Perform the primary action of this tool.booleanactSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, Direction face) Perform the secondary action of this block tool.booleanChecks to see if the player can still be using this tool (considering permissions and such).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sk89q.worldedit.command.tool.BlockTool
actPrimaryMethods inherited from interface com.sk89q.worldedit.command.tool.DoubleActionBlockTool
actSecondary
-
Constructor Details
-
BlockReplacer
-
-
Method Details
-
canUse
Description copied from interface:ToolChecks to see if the player can still be using this tool (considering permissions and such). -
actPrimary
public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, @Nullable Direction face) Description copied from interface:BlockToolPerform the primary action of this tool.- Specified by:
actPrimaryin interfaceBlockTool- Parameters:
server- The platformconfig- The config instanceplayer- The playersession- The local sessionclicked- The location that was clickedface- The face that was clicked- Returns:
- true to cancel the original event which triggered this action (if possible)
-
actSecondary
public boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, @Nullable Direction face) Description copied from interface:DoubleActionBlockToolPerform the secondary action of this block tool.- Specified by:
actSecondaryin interfaceDoubleActionBlockTool- Parameters:
server- The platformconfig- The config instanceplayer- The playersession- The local sessionclicked- The location that was clickedface- The face that was clicked- Returns:
- true to cancel the original event which triggered this action (if possible)
-