Class NearestEntitySelector
java.lang.Object
xyz.srnyx.annoyingapi.command.selector.Selector<org.bukkit.entity.Entity>
xyz.srnyx.annoyingapi.command.selector.selectors.NearestEntitySelector
Selector that selects the nearest entity to the command sender
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable List<org.bukkit.entity.Entity> expandImplementation(@NotNull AnnoyingSender sender) Gets the allowed senders for the selector@NotNull Class<org.bukkit.entity.Entity> getType()Gets the type of object the selector expands to
-
Constructor Details
-
NearestEntitySelector
public NearestEntitySelector()Constructor for NearestEntitySelector
-
-
Method Details
-
getType
Description copied from class:SelectorGets the type of object the selector expands to -
getAllowedSenders
Description copied from class:SelectorGets the allowed senders for the selector- Overrides:
getAllowedSendersin classSelector<org.bukkit.entity.Entity>- Returns:
- the allowed senders for the selector, or null if all senders are allowed
-
expandImplementation
@Nullable public @Nullable List<org.bukkit.entity.Entity> expandImplementation(@NotNull @NotNull AnnoyingSender sender) - Specified by:
expandImplementationin classSelector<org.bukkit.entity.Entity>
-