Class SingleEntitySelector

    • Constructor Summary

      Constructors 
      Constructor Description
      SingleEntitySelector​(@NonNull java.lang.String selector, @NonNull java.util.List<@NonNull org.bukkit.entity.Entity> entities)
      Construct a new selector
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable org.bukkit.entity.Entity getEntity()
      Get the selected entity or null if no entity matched
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleEntitySelector

        public SingleEntitySelector​(@NonNull java.lang.String selector,
                                    @NonNull java.util.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 Detail

      • 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