Package com.sk89q.worldedit.command.tool
Enum Class SelectionWand
- All Implemented Interfaces:
BlockTool
,DoubleActionBlockTool
,Tool
,Serializable
,Comparable<SelectionWand>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
actPrimary
(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, Direction face) Perform the primary action of this tool.boolean
actSecondary
(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, Direction face) Perform the secondary action of this block tool.boolean
Checks to see if the player can still be using this tool (considering permissions and such).static SelectionWand
Returns the enum constant of this class with the specified name.static SelectionWand[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.sk89q.worldedit.command.tool.BlockTool
actPrimary
Methods inherited from interface com.sk89q.worldedit.command.tool.DoubleActionBlockTool
actSecondary
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
actSecondary
public boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, @Nullable Direction face) Description copied from interface:DoubleActionBlockTool
Perform the secondary action of this block tool.- Specified by:
actSecondary
in 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)
-
actPrimary
public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, @Nullable Direction face) Description copied from interface:BlockTool
Perform the primary action of this tool.- Specified by:
actPrimary
in 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)
-
canUse
Description copied from interface:Tool
Checks to see if the player can still be using this tool (considering permissions and such).
-