Interface AudienceProvider<A>
- Type Parameters:
A
- the type that is provided
public interface AudienceProvider<A>
A generic provider of
audiences
or some subtype.-
Method Summary
Modifier and TypeMethodDescriptionall()
Gets all audience members.Gets all audience members that match the given predicate.console()
Gets the console as an audience.custom
(@NotNull net.kyori.adventure.key.Key key) Gets all custom audience members stored using the given key.default A
custom
(@NotNull net.kyori.adventure.key.Keyed keyed) Gets all custom audience members stored using the given keyed object.default A
Gets all custom audience members stored using the given keyed object that match the given predicate.Gets all custom audience members stored using the given key that match the given predicate.customs()
Gets all custom audience members.Gets all custom audience members matching the given predicate.players()
Gets all audience members that are of typePlayer
.Gets all audience members that are of typePlayer
and match the predicate.@NotNull AudienceRegistry
registry()
Gets the audience registry used to register custom audiences.server()
-
Method Details
-
all
-
players
-
players
-
console
-
server
-
custom
Gets all custom audience members stored using the given keyed object.- Parameters:
keyed
- the keyed object- Returns:
- all custom audience members stored using the key of the object
-
custom
Gets all custom audience members stored using the given key.- Parameters:
key
- the key- Returns:
- all custom audience members stored using the key
-
custom
@NotNull default A custom(@NotNull @NotNull net.kyori.adventure.key.Keyed keyed, Predicate<Audience> filter) Gets all custom audience members stored using the given keyed object that match the given predicate.- Parameters:
keyed
- the keyed objectfilter
- the predicate- Returns:
- all custom audience members stored using the key
-
custom
-
customs
-
customs
-
all
-
registry
Gets the audience registry used to register custom audiences.- Returns:
- the registry
-