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, set
builderOf, get, getParser, getSerializer, getValueClass, of, of, of, set
getCachedOrDefault, getCachedOrDefault, getCachedValue, getDefaultFirst, isExpired, updateCache
builder, getNotNull, getOptional, getOrDefault, initialize, isDefault, setDefault, setDefault
getConfigPath, getConfiguration, getDefaultValue, getHeaderComments, getInlineComment, getProvider, getValue, initialize, of, of, setDefaultValue, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
broadcast, broadcast, parse, prepare, send, send, sendToAll, sendToAll, sendToEach, sendToEach
public 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()
BaseMessage
Copyright © 2024. All rights reserved.