public class TalkOptions extends Mod implements ContextMod
Constructor and Description |
---|
TalkOptions(StyleOptions styles)
JSON-driven constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowedStyle(StyleDesc style)
Test if this mod's style options are compatible with particular style
settings.
|
JSONLiteral |
encode(EncodeControl control)
Encode this mod for transmission or persistence.
|
attachTo, clone, context, ensureHolding, ensureInContext, ensureReachable, ensureSameContext, ensureSameUser, holder, isEphemeral, markAsChanged, markAsEphemeral, object
@JSONMethod(value="styles") public TalkOptions(StyleOptions styles)
styles
- Permissible styles for chat text in the context to which
this mod is attached.public boolean allowedStyle(StyleDesc style)
style
- The StyleDesc
to test.public JSONLiteral encode(EncodeControl control)
Copyright © 2017. All rights reserved.