public class ConfiguredMessage<M> extends ConfigMessage<M,TextConfig,net.md_5.bungee.api.CommandSender>
ConfigMessage.PreparedMessage<P,N>messageParser, params, sendFunction, textBuilder| 构造器和说明 |
|---|
ConfiguredMessage(@NotNull cc.carm.lib.configuration.core.value.ValueManifest<TextConfig> manifest,
@NotNull java.lang.String[] params,
@NotNull java.util.function.BiFunction<net.md_5.bungee.api.CommandSender,java.lang.String,M> messageParser,
@NotNull java.util.function.BiConsumer<net.md_5.bungee.api.CommandSender,M> sendFunction) |
| 限定符和类型 | 方法和说明 |
|---|---|
static BungeeMessageValueBuilder<java.lang.String> |
asString() |
static <M> @NotNull BungeeMessageValueBuilder<M> |
create(@NotNull java.util.function.BiFunction<net.md_5.bungee.api.CommandSender,java.lang.String,M> messageParser) |
@NotNull java.util.Collection<net.md_5.bungee.api.CommandSender> |
getAllReceivers()
得到所有的接收者
|
static ConfiguredMessage<java.lang.String> |
ofString() |
static ConfiguredMessage<java.lang.String> |
ofString(@NotNull java.lang.String defaultMessage) |
apply, buildText, getParams, parse, parseString, parseTo, setbuilderOf, get, getParser, getSerializer, getValueClass, of, of, of, setgetCachedOrDefault, getCachedOrDefault, getCachedValue, getDefaultFirst, isExpired, updateCachebuilder, getNotNull, getOptional, getOrDefault, initialize, isDefault, setDefault, setDefaultgetConfigPath, getConfiguration, getDefaultValue, getHeaderComments, getInlineComment, getProvider, getValue, initialize, of, of, setDefaultValue, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbroadcast, broadcast, parse, prepare, send, send, sendToAll, sendToAll, sendToEach, sendToEachpublic ConfiguredMessage(@NotNull
@NotNull cc.carm.lib.configuration.core.value.ValueManifest<TextConfig> manifest,
@NotNull
@NotNull java.lang.String[] params,
@NotNull
@NotNull java.util.function.BiFunction<net.md_5.bungee.api.CommandSender,java.lang.String,M> messageParser,
@NotNull
@NotNull java.util.function.BiConsumer<net.md_5.bungee.api.CommandSender,M> sendFunction)
@NotNull public static <M> @NotNull BungeeMessageValueBuilder<M> create(@NotNull @NotNull java.util.function.BiFunction<net.md_5.bungee.api.CommandSender,java.lang.String,M> messageParser)
public static BungeeMessageValueBuilder<java.lang.String> asString()
public static ConfiguredMessage<java.lang.String> ofString()
public static ConfiguredMessage<java.lang.String> ofString(@NotNull @NotNull java.lang.String defaultMessage)
@NotNull public @NotNull java.util.Collection<net.md_5.bungee.api.CommandSender> getAllReceivers()
BaseMessageCopyright © 2024. All rights reserved.