类 ConfiguredText<MSG,RECEIVER>
java.lang.Object
cc.carm.lib.configuration.value.ValueManifest<T,U>
cc.carm.lib.configuration.value.ConfigValue<T,U>
cc.carm.lib.configuration.value.impl.CachedConfigValue<V,V>
cc.carm.lib.configuration.value.standard.ConfiguredValue<TextContents>
cc.carm.lib.configuration.value.text.ConfiguredText<MSG,RECEIVER>
- 类型参数:
MSG- The type of the messageRECEIVER- The type of the receiver
-
嵌套类概要
嵌套类修饰符和类型类说明static classstatic class -
字段概要
字段修饰符和类型字段说明protected final @NotNull BiFunction<RECEIVER,String, MSG> protected final @NotNull BiConsumer<RECEIVER,List<MSG>> protected final @NotNull String[]protected final @NotNull BiFunction<RECEIVER,String, String> static final ValueAdapter<TextContents>static final ValueType<TextContents>从类继承的字段 cc.carm.lib.configuration.value.standard.ConfiguredValue
adapter从类继承的字段 cc.carm.lib.configuration.value.impl.CachedConfigValue
cachedValue, parsedTime从类继承的字段 cc.carm.lib.configuration.value.ValueManifest
defaultSupplier, holder, initializer, path, type, validator -
构造器概要
构造器构造器说明ConfiguredText(@NotNull ValueManifest<TextContents, TextContents> manifest, @NotNull BiFunction<RECEIVER, String, String> parser, @NotNull BiFunction<RECEIVER, String, MSG> compiler, @NotNull BiConsumer<RECEIVER, List<MSG>> dispatcher, @NotNull String[] params) -
方法概要
修饰符和类型方法说明Compile the message for the receiver.compileLine(RECEIVER receiver, @NotNull Object... values) Compile the message for the receiver and send it.static <M,R> ConfiguredText.Builder<M, R, ?> create()Parse the message for the receiver.Parse the message for the receiver and send it.voidSend the message to the receiver.voidSend the message to the multiple receivers.从类继承的方法 cc.carm.lib.configuration.value.standard.ConfiguredValue
adapter, builderOf, builderOf, get, of, of, of, of, of, of, of, of, parser, serializer, set, with, with从类继承的方法 cc.carm.lib.configuration.value.impl.CachedConfigValue
cacheExpired, getCachedOrDefault, getCachedOrDefault, getCachedValue, getDefaultFirst, parserFor, serializerFor, updateCache从类继承的方法 cc.carm.lib.configuration.value.ConfigValue
getNotNull, getOrDefault, isDefault, optional, resolve, save, setDefault, setDefault从类继承的方法 cc.carm.lib.configuration.value.ValueManifest
config, defaults, defaults, defaults, getData, hasDefaults, holder, holder, initialize, initialize, metadata, path, path, setData, throwing, throwing, type, validate, validator, validator, withValidated
-
字段详细资料
-
TEXT_TYPE
-
TEXT_ADAPTER
-
parser
-
compiler
-
dispatcher
-
params
-
-
构造器详细资料
-
ConfiguredText
public ConfiguredText(@NotNull @NotNull ValueManifest<TextContents, TextContents> manifest, @NotNull @NotNull BiFunction<RECEIVER, String, String> parser, @NotNull @NotNull BiFunction<RECEIVER, String, MSG> compiler, @NotNull @NotNull BiConsumer<RECEIVER, List<MSG>> dispatcher, @NotNull @NotNull String[] params)
-
-
方法详细资料
-
create
-
prepare
-
parse
Parse the message for the receiver.- 参数:
receiver- The receiver of the message.values- The values to replace theparams.- 返回:
- The parsed message.
-
parseLine
Parse the message for the receiver and send it.- 参数:
receiver- The receiver of the message.values- The values to replace theparams.- 返回:
- The parsed message.
-
compile
Compile the message for the receiver.- 参数:
receiver- The receiver of the message.values- The values to replace theparams.- 返回:
- The compiled message.
-
compileLine
Compile the message for the receiver and send it.- 参数:
receiver- The receiver of the message.values- The values to replace theparams.- 返回:
- The compiled message.
-
sendTo
Send the message to the receiver.- 参数:
receiver- The receiver of the message.values- The values to replace theparams.
-
sendToAll
public void sendToAll(@NotNull @NotNull Iterable<? extends RECEIVER> receivers, @NotNull @NotNull Object... values) Send the message to the multiple receivers.- 参数:
receivers- The receivers of the message.values- The values to replace theparams.
-