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