Interface AudienceMessageEvent
- All Superinterfaces:
Event, MessageEvent
- All Known Subinterfaces:
AdvancementEvent.Grant, DestructEntityEvent, DestructEntityEvent.Death, ServerSideConnectionEvent.Join, ServerSideConnectionEvent.Leave, SystemMessageEvent
-
Method Summary
Modifier and TypeMethodDescriptionaudience()Gets the current audience that this message will be sent to.default voidfilterAudience(Predicate<Audience> predicate) Filters the current audience with given predicate.Gets the original audience that this message will be sent to.voidsetAudience(@Nullable Audience audience) Sets the audience for this message to go to.Methods inherited from interface MessageEvent
message, originalMessage, setMessage
-
Method Details
-
originalAudience
Audience originalAudience()Gets the original audience that this message will be sent to.- Returns:
- The original audience to send to
-
audience
-
setAudience
Sets the audience for this message to go to.- Parameters:
audience- The audience to set
-
filterAudience
-