LocationArgument

class LocationArgument<T>(name: String, suggestion: SuggestionAction<T>?, action: ContextAction<T>?) : Argument<Location, T>

An argument that takes coordinates as an input value. You can also use "~" and "^". If it falls below the minimum value or exceeds the maximum value, an error will be displayed on the client side, and even if you try to execute it, it will not be accepted. Expected input : 123 456 789~ ~10 ~111 ~5 ^10

See also

Parameters

name

Name of argument.

suggestion

Lambda expression for tab completion of its arguments.

Check the following for the specifications of other arguments.

Constructors

LocationArgument
Link copied to clipboard
fun <T> LocationArgument(name: String, suggestion: SuggestionAction<T>? = null, action: ContextAction<T>? = null)

Functions

parse
Link copied to clipboard
open override fun parse(context: CommandContext<CommandListenerWrapper>, key: String): Location

Properties

action
Link copied to clipboard
open override val action: ContextAction<T>? = null

Argument context action

name
Link copied to clipboard
open override val name: String
suggestion
Link copied to clipboard
open override val suggestion: SuggestionAction<T>? = null
type
Link copied to clipboard
open override val type: ArgumentPosition

Mojang Brigadier argument type.