Interface IgnoreMessageContext
- All Superinterfaces:
MessageContext
A change to a player's ignore list.
Builds on
MessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.module.command.ignore.model.IgnoreMessageContextImpl.IgnoreMessageContextImplBuilderbuilder()Starts building this context.@NonNull Ignoreignore()The ignore entry.booleanignored()Whether the target is now ignored, rather than un-ignored.withIgnore(@NonNull Ignore ignore) Returns a copy carrying a different value.withIgnored(boolean ignored) Returns a copy carrying a different value.Methods inherited from interface MessageContext
addFlag, addFlags, addTagResolver, addTagResolvers, base, createCacheKey, flags, isFlag, message, receiver, sender, tagResolver, toBuilder, uuid, withBase, withFlags, withMessage, withReceiver, withSender, withTagResolver, withUuid
-
Method Details
-
builder
static net.flectone.pulse.module.command.ignore.model.IgnoreMessageContextImpl.IgnoreMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
ignore
-
ignored
boolean ignored()Whether the target is now ignored, rather than un-ignored.- Returns:
- whether the target is now ignored, rather than un-ignored
-
withIgnore
Returns a copy carrying a different value.- Parameters:
ignore- the ignore entry- Returns:
- the copy
-
withIgnored
Returns a copy carrying a different value.- Parameters:
ignored- whether the target is now ignored, rather than un-ignored- Returns:
- the copy
-