Package com.sk89q.worldedit.command.tool
Interface DoubleActionBlockTool
- All Known Implementing Classes:
BlockDataCyler
,BlockReplacer
,SelectionWand
Represents a block tool that also has a secondary/primary function.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
actSecondary
(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked) Deprecated.default boolean
actSecondary
(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, Direction face) Perform the secondary action of this block tool.Methods inherited from interface com.sk89q.worldedit.command.tool.BlockTool
actPrimary, actPrimary
-
Method Details
-
actSecondary
@Deprecated default boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked) Deprecated.New subclasses must overrideactSecondary(Platform, LocalConfiguration, Player, LocalSession, Location, Direction)
insteadPerform the secondary action of this block tool.- Returns:
- true to cancel the original event which triggered this action (if possible)
-
actSecondary
@NonAbstractForCompatibility(delegateName="actSecondary", delegateParams={Platform.class,LocalConfiguration.class,Player.class,LocalSession.class,Location.class}) default boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, @Nullable Direction face) Perform the secondary action of this block 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)
-
actSecondary(Platform, LocalConfiguration, Player, LocalSession, Location, Direction)
instead