Class SinglePlayerSelector

    • Constructor Summary

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

      • SinglePlayerSelector

        public SinglePlayerSelector​(@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

      • getPlayer

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