public class CommandTarget extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CommandTarget.SelectorValue
Represents the value of a selector argument.
|
Constructor and Description |
---|
CommandTarget(org.bukkit.command.CommandSender sender,
String target)
Parses the target of the command with the given argument.
|
Modifier and Type | Method and Description |
---|---|
HashMap<String,CommandTarget.SelectorValue> |
getArguments()
The arguments of the selector (target).
|
org.bukkit.entity.Entity[] |
getMatched(org.bukkit.Location source)
Gets all the matched entities from the target.
|
net.glowstone.command.CommandTarget.SelectorType |
getSelector()
The type of selector (target).
|
public CommandTarget(org.bukkit.command.CommandSender sender, String target)
sender
- the sender that used this target selectortarget
- the un-parsed command targetpublic HashMap<String,CommandTarget.SelectorValue> getArguments()
public org.bukkit.entity.Entity[] getMatched(org.bukkit.Location source)
source
- the location from which the targets should be foundpublic net.glowstone.command.CommandTarget.SelectorType getSelector()
Copyright © 2021. All rights reserved.