Class NodePlayerProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.util.Collection<java.lang.String> asNames()  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<java.lang.String>> asNamesAsync()  
      @NotNull java.util.Collection<? extends ICloudPlayer> asPlayers()  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<? extends ICloudPlayer>> asPlayersAsync()  
      @NotNull java.util.Collection<java.util.UUID> asUUIDs()  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<java.util.UUID>> asUUIDsAsync()  
      int count()  
      @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Integer> countAsync()  
      • Methods inherited from class java.lang.Object

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

      • NodePlayerProvider

        public NodePlayerProvider​(NodePlayerManager playerManager,
                                  java.util.function.Supplier<java.util.stream.Stream<? extends ICloudPlayer>> playerSupplier)
    • Method Detail

      • asUUIDs

        @NotNull
        public @NotNull java.util.Collection<java.util.UUID> asUUIDs()
        Specified by:
        asUUIDs in interface PlayerProvider
      • asNames

        @NotNull
        public @NotNull java.util.Collection<java.lang.String> asNames()
        Specified by:
        asNames in interface PlayerProvider
      • asPlayersAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<? extends ICloudPlayer>> asPlayersAsync()
        Specified by:
        asPlayersAsync in interface PlayerProvider
      • asUUIDsAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<java.util.UUID>> asUUIDsAsync()
        Specified by:
        asUUIDsAsync in interface PlayerProvider
      • asNamesAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<java.lang.String>> asNamesAsync()
        Specified by:
        asNamesAsync in interface PlayerProvider
      • countAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Integer> countAsync()
        Specified by:
        countAsync in interface PlayerProvider