Class NearestPlayerSelector
java.lang.Object
xyz.srnyx.annoyingapi.command.selector.selectors.NearestPlayerSelector
- All Implemented Interfaces:
Selector<org.bukkit.entity.Player>
Selector that selects the nearest player to the command sender
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable List<org.bukkit.entity.Player> expand(@NotNull AnnoyingSender sender) Expands the selector to a list of objects@NotNull Class<org.bukkit.entity.Player> getType()Gets the type of object the selector expands to
-
Constructor Details
-
NearestPlayerSelector
public NearestPlayerSelector()Constructor for NearestPlayerSelector
-
-
Method Details
-
getType
Description copied from interface:SelectorGets the type of object the selector expands to -
expand
@Nullable public @Nullable List<org.bukkit.entity.Player> expand(@NotNull @NotNull AnnoyingSender sender) Description copied from interface:SelectorExpands the selector to a list of objects- Specified by:
expandin interfaceSelector<org.bukkit.entity.Player>- Parameters:
sender- theAnnoyingSenderwho executed the command- Returns:
- the list of objects the selector expands to, or null if none
-