Class NearestEntitySelector

java.lang.Object
xyz.srnyx.annoyingapi.command.selector.Selector<org.bukkit.entity.Entity>
xyz.srnyx.annoyingapi.command.selector.selectors.NearestEntitySelector

public class NearestEntitySelector extends Selector<org.bukkit.entity.Entity>
Selector that selects the nearest entity to the command sender
  • Constructor Details

    • NearestEntitySelector

      public NearestEntitySelector()
      Constructor for NearestEntitySelector
  • Method Details

    • getType

      @NotNull public @NotNull Class<org.bukkit.entity.Entity> getType()
      Description copied from class: Selector
      Gets the type of object the selector expands to
      Specified by:
      getType in class Selector<org.bukkit.entity.Entity>
      Returns:
      the type of object the selector expands to
    • getAllowedSenders

      @NotNull public @NotNull Set<Class<? extends org.bukkit.command.CommandSender>> getAllowedSenders()
      Description copied from class: Selector
      Gets the allowed senders for the selector
      Overrides:
      getAllowedSenders in class Selector<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:
      expandImplementation in class Selector<org.bukkit.entity.Entity>