public class ConfiguredTitle extends cc.carm.lib.configuration.core.value.type.ConfiguredSection<TitleConfig>
限定符和类型 | 类和说明 |
---|---|
static interface |
ConfiguredTitle.TitleConsumer |
限定符和类型 | 字段和说明 |
---|---|
static ConfiguredTitle.TitleConsumer |
DEFAULT_TITLE_CONSUMER |
protected int |
fadeIn |
protected int |
fadeOut |
protected @NotNull java.lang.String[] |
params |
protected ConfiguredTitle.TitleConsumer |
sendConsumer |
protected int |
stay |
构造器和说明 |
---|
ConfiguredTitle(@NotNull cc.carm.lib.configuration.core.value.ValueManifest<TitleConfig> manifest,
@NotNull java.lang.String[] params,
ConfiguredTitle.TitleConsumer sendConsumer,
int fadeIn,
int stay,
int fadeOut) |
限定符和类型 | 方法和说明 |
---|---|
static TitleConfigBuilder |
create() |
@Range(from=0L,to=2147483647L) int |
getFadeInTicks() |
@Range(from=0L,to=2147483647L) int |
getFadeOutTicks() |
ConfiguredTitle.TitleConsumer |
getSendConsumer() |
@Range(from=0L,to=2147483647L) int |
getStayTicks() |
static cc.carm.lib.configuration.core.function.ConfigValueParser<cc.carm.lib.configuration.core.source.ConfigurationWrapper<?>,TitleConfig> |
getTitleParser() |
static ConfiguredTitle |
of(@Nullable java.lang.String line1,
@Nullable java.lang.String line2) |
static ConfiguredTitle |
of(@Nullable java.lang.String line1,
@Nullable java.lang.String line2,
int fadeIn,
int stay,
int fadeOut) |
void |
send(@NotNull org.bukkit.entity.Player player,
@NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders) |
void |
send(@NotNull org.bukkit.entity.Player player,
java.lang.Object... values) |
void |
send(@NotNull org.bukkit.entity.Player player,
@NotNull java.lang.String[] params,
@NotNull java.lang.Object[] values) |
void |
sendToAll(@NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders) |
void |
sendToAll(java.lang.Object... values) |
void |
sendToAll(@NotNull java.lang.String[] params,
@NotNull java.lang.Object[] values) |
void |
sendToEach(@NotNull java.util.function.Function<org.bukkit.entity.Player,java.lang.Object[]> eachValues) |
void |
sendToEach(@Nullable java.util.function.Predicate<org.bukkit.entity.Player> limiter,
@NotNull java.util.function.Function<org.bukkit.entity.Player,java.lang.Object[]> eachValues) |
builderOf, get, getParser, getSerializer, getValueClass, set
getCachedOrDefault, getCachedOrDefault, getCachedValue, getDefaultFirst, isExpired, updateCache
builder, getNotNull, getOptional, getOrDefault, initialize, isDefault, setDefault, setDefault
@NotNull public static final ConfiguredTitle.TitleConsumer DEFAULT_TITLE_CONSUMER
@NotNull protected final ConfiguredTitle.TitleConsumer sendConsumer
@NotNull protected final @NotNull java.lang.String[] params
protected final int fadeIn
protected final int stay
protected final int fadeOut
public ConfiguredTitle(@NotNull @NotNull cc.carm.lib.configuration.core.value.ValueManifest<TitleConfig> manifest, @NotNull @NotNull java.lang.String[] params, @NotNull ConfiguredTitle.TitleConsumer sendConsumer, int fadeIn, int stay, int fadeOut)
public static TitleConfigBuilder create()
public static ConfiguredTitle of(@Nullable @Nullable java.lang.String line1, @Nullable @Nullable java.lang.String line2)
public static ConfiguredTitle of(@Nullable @Nullable java.lang.String line1, @Nullable @Nullable java.lang.String line2, int fadeIn, int stay, int fadeOut)
public @Range(from=0L,to=2147483647L) int getFadeInTicks()
public @Range(from=0L,to=2147483647L) int getStayTicks()
public @Range(from=0L,to=2147483647L) int getFadeOutTicks()
@NotNull public ConfiguredTitle.TitleConsumer getSendConsumer()
public void send(@NotNull @NotNull org.bukkit.entity.Player player, java.lang.Object... values)
public void send(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull java.lang.String[] params, @NotNull @NotNull java.lang.Object[] values)
public void send(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders)
public void sendToAll(java.lang.Object... values)
public void sendToAll(@NotNull @NotNull java.lang.String[] params, @NotNull @NotNull java.lang.Object[] values)
public void sendToAll(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders)
public void sendToEach(@NotNull @NotNull java.util.function.Function<org.bukkit.entity.Player,java.lang.Object[]> eachValues)
public void sendToEach(@Nullable @Nullable java.util.function.Predicate<org.bukkit.entity.Player> limiter, @NotNull @NotNull java.util.function.Function<org.bukkit.entity.Player,java.lang.Object[]> eachValues)
public static cc.carm.lib.configuration.core.function.ConfigValueParser<cc.carm.lib.configuration.core.source.ConfigurationWrapper<?>,TitleConfig> getTitleParser()
Copyright © 2024. All rights reserved.