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
    • Method Summary

      Modifier and Type Method Description
      @NonNull org.bukkit.entity.Player getPlayer()
      Get the selected player
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 @NonNull org.bukkit.entity.Player getPlayer()
        Get the selected player
        Returns:
        Gets the single player parsed by the selector