Class Audiences
java.lang.Object
net.minestom.server.adventure.audience.Audiences
Utility class to access Adventure audiences.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Audienceall()Gets all audience members.static AudienceGets all audience members that match the given predicate.static Audienceconsole()Gets the console as an audience.static AudienceGets all custom audience members stored using the given key.static AudienceGets all custom audience members stored using the given keyed object.static AudienceGets all custom audience members stored using the given keyed object that match the given predicate.static AudienceGets all custom audience members stored using the given key that match the given predicate.static Audiencecustoms()Gets all custom audience members.static AudienceGets all custom audience members matching the given predicate.static AudienceProvider<Iterable<? extends Audience>> iterable()Gets theAudienceProviderthat provides iterables of audience members.static Audienceplayers()Gets all audience members that are of typePlayer.static AudienceGets all audience members that are of typePlayerand match the predicate.static AudienceRegistryregistry()Gets the audience registry used to register custom audiences.static Audienceserver()static AudienceProvider<Audience> single()Gets theAudienceProviderthat provides forwarding audiences.
-
Constructor Details
-
Audiences
public Audiences()
-
-
Method Details
-
single
Gets theAudienceProviderthat provides forwarding audiences.- Returns:
- the instance
-
iterable
Gets theAudienceProviderthat provides iterables of audience members.- Returns:
- the instance
-
all
-
players
-
players
-
console
-
server
-
customs
Gets all custom audience members.- Returns:
- all custom audience members
-
custom
-
custom
-
custom
-
custom
-
customs
-
all
-
registry
Gets the audience registry used to register custom audiences.- Returns:
- the registry
-