Package com.sk89q.worldedit.command.tool
Interface BlockTool
- All Superinterfaces:
Tool
- All Known Subinterfaces:
DoubleActionBlockTool
- All Known Implementing Classes:
AreaPickaxe
,BlockDataCyler
,BlockReplacer
,FloatingTreeRemover
,FloodFillTool
,QueryTool
,RecursivePickaxe
,SelectionWand
,SinglePickaxe
,StackTool
,TreePlanter
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
actPrimary
(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked) Deprecated.default boolean
actPrimary
(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, Direction face) Perform the primary action of this tool.
-
Method Details
-
actPrimary
@Deprecated default boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked) Deprecated.New subclasses should overrideactPrimary(Platform, LocalConfiguration, Player, LocalSession, Location, Direction)
insteadPerform the primary action of this tool.- Returns:
- true to cancel the original event which triggered this action (if possible)
-
actPrimary
@NonAbstractForCompatibility(delegateName="actPrimary", delegateParams={Platform.class,LocalConfiguration.class,Player.class,LocalSession.class,Location.class}) default boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, @Nullable Direction face) Perform the primary action of this tool.- 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)
-
actPrimary(Platform, LocalConfiguration, Player, LocalSession, Location, Direction)
instead