CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
An argument that represents the Bukkit Location
object.
More...
Public Member Functions | |
LocationArgument (String nodeName) | |
A Location argument. More... | |
LocationArgument (String nodeName, LocationType type) | |
A Location argument. More... | |
LocationArgument (String nodeName, LocationType type, boolean centerPosition) | |
A Location argument. More... | |
LocationType | getLocationType () |
Returns whether this argument is LocationType#BLOCK_POSITION or LocationType#PRECISE_POSITION . More... | |
Class< Location > | getPrimitiveType () |
CommandAPIArgumentType | getArgumentType () |
Function< S, String > | getMapper () |
Static Public Member Functions | |
static< S > Function< S, String > | fromKey (Function< S, NamespacedKey > mapper) |
dev.jorel.commandapi.arguments.LocationArgument.LocationArgument | ( | String | nodeName | ) |
A Location argument.
Represents Minecraft locations. Defaults to LocationType#PRECISE_POSITION
nodeName | the name of the node for this argument |
dev.jorel.commandapi.arguments.LocationArgument.LocationArgument | ( | String | nodeName, |
LocationType | type | ||
) |
A Location argument.
Represents Minecraft locations
nodeName | the name of the node for this argument |
type | the location type of this location, either LocationType#BLOCK_POSITION or LocationType#PRECISE_POSITION |
dev.jorel.commandapi.arguments.LocationArgument.LocationArgument | ( | String | nodeName, |
LocationType | type, | ||
boolean | centerPosition | ||
) |
A Location argument.
Represents Minecraft locations
nodeName | the name of the node for this argument |
type | the location type of this location, either LocationType#BLOCK_POSITION or LocationType#PRECISE_POSITION |
centerPosition | whether LocationType.PRECISE_POSITION should center the position of the location within a block |
|
staticinherited |
Composes a S
to a NamespacedKey
mapping function to convert S
to a String
mapper | the mapping function from S to NamespacedKey |
S
to String
LocationType dev.jorel.commandapi.arguments.LocationArgument.getLocationType | ( | ) |
Returns whether this argument is LocationType#BLOCK_POSITION
or LocationType#PRECISE_POSITION
.