public class ConfiguredMessage<M> extends ConfigMessage<M,TextConfig,org.bukkit.command.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<org.bukkit.command.CommandSender,java.lang.String,M> messageParser,
@NotNull java.util.function.BiConsumer<org.bukkit.command.CommandSender,M> sendFunction) |
限定符和类型 | 方法和说明 |
---|---|
static CraftMessageValueBuilder<java.lang.String> |
asString() |
static <M> @NotNull CraftMessageValueBuilder<M> |
create(@NotNull java.util.function.BiFunction<org.bukkit.command.CommandSender,java.lang.String,M> messageParser) |
@NotNull java.util.Collection<org.bukkit.command.CommandSender> |
getAllReceivers()
得到所有的接收者
|
static ConfiguredMessage<java.lang.String> |
ofString() |
static ConfiguredMessage<java.lang.String> |
ofString(@NotNull java.lang.String defaultMessage) |
void |
sendActionBar(org.bukkit.entity.Player player,
java.util.Map<java.lang.String,java.lang.Object> placeholders) |
void |
sendActionBar(org.bukkit.entity.Player player,
java.lang.String... values) |
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<org.bukkit.command.CommandSender,java.lang.String,M> messageParser, @NotNull @NotNull java.util.function.BiConsumer<org.bukkit.command.CommandSender,M> sendFunction)
@NotNull public static <M> @NotNull CraftMessageValueBuilder<M> create(@NotNull @NotNull java.util.function.BiFunction<org.bukkit.command.CommandSender,java.lang.String,M> messageParser)
public static CraftMessageValueBuilder<java.lang.String> asString()
public static ConfiguredMessage<java.lang.String> ofString()
public static ConfiguredMessage<java.lang.String> ofString(@NotNull @NotNull java.lang.String defaultMessage)
public void sendActionBar(org.bukkit.entity.Player player, java.lang.String... values)
public void sendActionBar(org.bukkit.entity.Player player, java.util.Map<java.lang.String,java.lang.Object> placeholders)
@NotNull public @NotNull java.util.Collection<org.bukkit.command.CommandSender> getAllReceivers()
BaseMessage
Copyright © 2024. All rights reserved.