Class SingleEntitySelector


public final class SingleEntitySelector extends MultipleEntitySelector
  • Constructor Details

    • SingleEntitySelector

      public SingleEntitySelector(@NonNull String selector, @NonNull List<@NonNull org.bukkit.entity.Entity> entities)
      Construct a new selector
      Parameters:
      selector - The input string used to create this selector
      entities - The List of Bukkit entities to construct the EntitySelector from
  • Method Details

    • getEntity

      public @Nullable org.bukkit.entity.Entity getEntity()
      Get the selected entity or null if no entity matched
      Returns:
      Gets the single Bukkit Entity parsed by the selector