Interface AFKMessageContext
- All Superinterfaces:
MessageContext, VanishMessageContext
A change to a player's afk state.
Builds on
VanishMessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.module.message.afk.model.AFKMessageContextImpl.AFKMessageContextImplBuilderbuilder()Starts building this context.booleanWhether the player just went afk, rather than came back.withNewStatus(boolean newStatus) 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, withUuidMethods inherited from interface VanishMessageContext
fakeMessage, vanished, withFakeMessage, withVanished
-
Method Details
-
builder
static net.flectone.pulse.module.message.afk.model.AFKMessageContextImpl.AFKMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
newStatus
boolean newStatus()Whether the player just went afk, rather than came back.- Returns:
- whether the player just went afk, rather than came back
-
withNewStatus
Returns a copy carrying a different value.- Parameters:
newStatus- whether the player just went afk, rather than came back- Returns:
- the copy
-