public class TitleNotify extends NotifyType<TitleConfig>
| 限定符和类型 | 字段和说明 |
|---|---|
static java.util.regex.Pattern |
CONTENT_FORMAT |
static java.util.regex.Pattern |
PARAM_FORMAT |
key, metaClass| 构造器和说明 |
|---|
TitleNotify(java.lang.String key) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(@NotNull org.bukkit.entity.Player player,
@Nullable TitleConfig meta,
@NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders)
Execute the notify content to specific player.
|
@Nullable TitleConfig |
parseMeta(@Nullable java.lang.String param,
@Nullable java.lang.String content)
Parse metadata from string.
|
@NotNull java.lang.String |
serializeConfig(@Nullable TitleConfig meta)
Serialize the metadata to singleton string to storage on configs.
|
getKey, getMetaClass, setPlaceholderspublic static final java.util.regex.Pattern CONTENT_FORMAT
public static final java.util.regex.Pattern PARAM_FORMAT
@Nullable public @Nullable TitleConfig parseMeta(@Nullable @Nullable java.lang.String param, @Nullable @Nullable java.lang.String content)
NotifyTypeparseMeta 在类中 NotifyType<TitleConfig>param - The param of the notify config.content - The content of the notify config.@NotNull
public @NotNull java.lang.String serializeConfig(@Nullable
@Nullable TitleConfig meta)
NotifyTypeserializeConfig 在类中 NotifyType<TitleConfig>meta - The parsed metadata.public void execute(@NotNull
@NotNull org.bukkit.entity.Player player,
@Nullable
@Nullable TitleConfig meta,
@NotNull
@NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders)
NotifyTypeexecute 在类中 NotifyType<TitleConfig>player - The player who receive the notification.meta - The parsed metadata.Copyright © 2024. All rights reserved.