public class ConfiguredMessageList<M> extends ConfigMessageList<M,TextConfig,org.bukkit.command.CommandSender>
messageParser, params, sendFunction, textBuilder
构造器和说明 |
---|
ConfiguredMessageList(@NotNull cc.carm.lib.configuration.core.value.ValueManifest<java.util.List<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,java.util.List<M>> sendFunction) |
限定符和类型 | 方法和说明 |
---|---|
static CraftMessageListBuilder<java.lang.String> |
asStrings() |
static <M> @NotNull CraftMessageListBuilder<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 ConfiguredMessageList<java.lang.String> |
ofStrings(java.lang.String... defaultMessages) |
apply, buildText, getParams, parse, parseToLine, parseToLine, parseToLine, setMessages, setMessages
add, add, addAll, addAll, builderOf, clear, contains, containsAll, copy, get, get, handle, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, modify, of, of, remove, remove, removeAll, retainAll, set, set, size, subList, toArray, toArray
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 ConfiguredMessageList(@NotNull @NotNull cc.carm.lib.configuration.core.value.ValueManifest<java.util.List<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,java.util.List<M>> sendFunction)
@NotNull public static <M> @NotNull CraftMessageListBuilder<M> create(@NotNull @NotNull java.util.function.BiFunction<org.bukkit.command.CommandSender,java.lang.String,M> messageParser)
public static CraftMessageListBuilder<java.lang.String> asStrings()
public static ConfiguredMessageList<java.lang.String> ofStrings(@NotNull java.lang.String... defaultMessages)
@NotNull public @NotNull java.util.Collection<org.bukkit.command.CommandSender> getAllReceivers()
BaseMessage
Copyright © 2024. All rights reserved.