Interface BukkitAudiences

    • Method Detail

      • create

        @NotNull
        static @NotNull BukkitAudiences create​(@NotNull
                                               @NotNull Plugin plugin)
        Creates an audience provider for a plugin.

        There will only be one provider for each plugin.

        Parameters:
        plugin - a plugin
        Returns:
        an audience provider
        Since:
        4.0.0
      • builder

        @NotNull
        static @NotNull BukkitAudiences.Builder builder​(@NotNull
                                                        @NotNull Plugin plugin)
        Creates an audience provider builder for a plugin.

        There will only be one provider for each plugin.

        Parameters:
        plugin - a plugin
        Returns:
        an audience provider
        Since:
        4.0.0
      • asEmitter

        static @NotNull Sound.Emitter asEmitter​(@NotNull
                                                @NotNull Entity entity)
        Represent an entity as an emitter of sound.
        Parameters:
        entity - the entity to represent
        Returns:
        an emitter
        Since:
        4.0.0
      • sender

        @NotNull
        @NotNull Audience sender​(@NotNull
                                 @NotNull CommandSender sender)
        Gets an audience for a command sender.
        Parameters:
        sender - a command sender
        Returns:
        an audience
        Since:
        4.0.0
      • player

        @NotNull
        @NotNull Audience player​(@NotNull
                                 @NotNull Player player)
        Gets an audience for a player.
        Parameters:
        player - a player
        Returns:
        an audience
        Since:
        4.0.0
      • filter

        @NotNull
        @NotNull Audience filter​(@NotNull
                                 @NotNull java.util.function.Predicate<CommandSender> filter)
        Creates an audience based on a filter.
        Parameters:
        filter - a filter
        Returns:
        an audience
        Since:
        4.0.0