CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
An argument that represents the Bukkit Location
object in x and z directions.
More...
Public Member Functions | |
Location2DArgument (String nodeName) | |
A Location argument. More... | |
Location2DArgument (String nodeName, LocationType type) | |
A Location argument. More... | |
Location2DArgument (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< Location2D > | getPrimitiveType () |
CommandAPIArgumentType | getArgumentType () |
Function< S, String > | getMapper () |
Static Public Member Functions | |
static< S > Function< S, String > | fromKey (Function< S, NamespacedKey > mapper) |
An argument that represents the Bukkit Location
object in x and z directions.
Location2D
object dev.jorel.commandapi.arguments.Location2DArgument.Location2DArgument | ( | String | nodeName | ) |
A Location argument.
Represents Minecraft locations in 2D space. Defaults to LocationType#PRECISE_POSITION
nodeName | the name of the node for this argument |
dev.jorel.commandapi.arguments.Location2DArgument.Location2DArgument | ( | String | nodeName, |
LocationType | type | ||
) |
A Location argument.
Represents Minecraft locations in 2D space
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.Location2DArgument.Location2DArgument | ( | String | nodeName, |
LocationType | type, | ||
boolean | centerPosition | ||
) |
A Location argument.
Represents Minecraft locations in 2D space
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.Location2DArgument.getLocationType | ( | ) |
Returns whether this argument is LocationType#BLOCK_POSITION
or LocationType#PRECISE_POSITION
.