Class RandomEntitySelector

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

public class RandomEntitySelector extends Selector<org.bukkit.entity.Entity>
Selector that selects a random entity in the sender's world, or the first world if the sender is not a player
  • Constructor Details

    • RandomEntitySelector

      public RandomEntitySelector()
      Constructor for RandomEntitySelector
  • 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
    • expandImplementation

      @NotNull public @NotNull List<org.bukkit.entity.Entity> expandImplementation(@NotNull @NotNull AnnoyingSender sender)
      Specified by:
      expandImplementation in class Selector<org.bukkit.entity.Entity>