Class RandomEntitySelector
java.lang.Object
xyz.srnyx.annoyingapi.command.selector.Selector<org.bukkit.entity.Entity>
xyz.srnyx.annoyingapi.command.selector.selectors.RandomEntitySelector
Selector that selects a random entity in the sender's world, or the first world if the sender is not a player
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull List<org.bukkit.entity.Entity> expandImplementation(@NotNull AnnoyingSender sender) @NotNull Class<org.bukkit.entity.Entity> getType()Gets the type of object the selector expands toMethods inherited from class xyz.srnyx.annoyingapi.command.selector.Selector
expand, getAllowedSenders
-
Constructor Details
-
RandomEntitySelector
public RandomEntitySelector()Constructor for RandomEntitySelector
-
-
Method Details
-
getType
Description copied from class:SelectorGets the type of object the selector expands to -
expandImplementation
@NotNull public @NotNull List<org.bukkit.entity.Entity> expandImplementation(@NotNull @NotNull AnnoyingSender sender) - Specified by:
expandImplementationin classSelector<org.bukkit.entity.Entity>
-