Package com.sk89q.worldedit.command.tool
Enum Class NavigationWand
- All Implemented Interfaces:
DoubleActionTraceTool,Tool,TraceTool,Serializable,Comparable<NavigationWand>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanactPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session) Perform the primary action of this trace tool.booleanactSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session) Perform the secondary function of this tool.booleanChecks to see if the player can still be using this tool (considering permissions and such).static NavigationWandReturns the enum constant of this class with the specified name.static NavigationWand[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
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) Description copied from interface:DoubleActionTraceToolPerform the secondary function of this tool.- Specified by:
actSecondaryin interfaceDoubleActionTraceTool- 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:TraceToolPerform the primary action of this trace tool.- Specified by:
actPrimaryin interfaceTraceTool- 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)
-
canUse
Description copied from interface:ToolChecks to see if the player can still be using this tool (considering permissions and such).
-