Package org.spongepowered.api.adventure
Class Audiences
java.lang.Object
org.spongepowered.api.adventure.Audiences
Audience
s.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFilters an audience with given predicate.static Audience
Gets anAudience
that targets all online players.static Audience
server()
Gets anAudience
that targets the entire server, including players and system, when available.static Audience
system()
Gets anAudience
that targets the system, such as a server console.static Audience
withPermission
(String permission) Gets anAudience
that targets all online players with the specified permission.
-
Constructor Details
-
Audiences
public Audiences()
-
-
Method Details
-
server
Gets anAudience
that targets the entire server, including players and system, when available.- Returns:
- An audience
-
onlinePlayers
Gets anAudience
that targets all online players.- Returns:
- An audience
-
withPermission
Gets anAudience
that targets all online players with the specified permission.- Parameters:
permission
- The permission- Returns:
- An audience
-
filtered
Filters an audience with given predicate.For
ForwardingAudience
s the predicate is tested on eachForwardingAudience.audiences()
- Parameters:
predicate
- The predicate- Returns:
- The filtered audience.
-
system
Gets anAudience
that targets the system, such as a server console.- Returns:
- An audience
-