public class TitleConfig
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected int |
fadeIn |
protected int |
fadeOut |
protected @Nullable TextConfig |
line1 |
protected @Nullable TextConfig |
line2 |
protected int |
stay |
限定符 | 构造器和说明 |
---|---|
protected |
TitleConfig(@Nullable TextConfig line1,
@Nullable TextConfig line2) |
protected |
TitleConfig(@Nullable TextConfig line1,
@Nullable TextConfig line2,
int fadeIn,
int stay,
int fadeOut) |
限定符和类型 | 方法和说明 |
---|---|
static @Nullable TitleConfig |
deserialize(@NotNull cc.carm.lib.configuration.core.source.ConfigurationWrapper<?> section) |
int |
getFadeIn() |
int |
getFadeOut() |
@Nullable TextConfig |
getLine1() |
@Nullable TextConfig |
getLine2() |
int |
getStay() |
boolean |
isStandardTime() |
static @NotNull TitleConfig |
of(@Nullable java.lang.String line1,
@Nullable java.lang.String line2) |
static @NotNull TitleConfig |
of(@Nullable java.lang.String line1,
@Nullable java.lang.String line2,
int fadeIn,
int stay,
int fadeOut) |
static @NotNull TitleConfig |
of(@Nullable TextConfig line1,
@Nullable TextConfig line2) |
static @NotNull TitleConfig |
of(@Nullable TextConfig line1,
@Nullable TextConfig line2,
int fadeIn,
int stay,
int fadeOut) |
protected @NotNull java.lang.String |
parseLine(@Nullable TextConfig text,
@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,
@Range(from=0L,to=2147483647L) int fadeIn,
@Range(from=0L,to=2147483647L) int stay,
@Range(from=0L,to=2147483647L) int fadeOut,
@NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders,
ConfiguredTitle.TitleConsumer sendConsumer) |
void |
send(@NotNull org.bukkit.entity.Player player,
@NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders,
ConfiguredTitle.TitleConsumer sendConsumer) |
@NotNull java.util.Map<java.lang.String,java.lang.Object> |
serialize() |
@Nullable protected @Nullable TextConfig line1
@Nullable protected @Nullable TextConfig line2
protected final int fadeIn
protected final int stay
protected final int fadeOut
protected TitleConfig(@Nullable @Nullable TextConfig line1, @Nullable @Nullable TextConfig line2)
protected TitleConfig(@Nullable @Nullable TextConfig line1, @Nullable @Nullable TextConfig line2, int fadeIn, int stay, int fadeOut)
@NotNull public static @NotNull TitleConfig of(@Nullable @Nullable java.lang.String line1, @Nullable @Nullable java.lang.String line2)
@NotNull public static @NotNull TitleConfig of(@Nullable @Nullable TextConfig line1, @Nullable @Nullable TextConfig line2)
@NotNull public static @NotNull TitleConfig of(@Nullable @Nullable java.lang.String line1, @Nullable @Nullable java.lang.String line2, int fadeIn, int stay, int fadeOut)
@NotNull public static @NotNull TitleConfig of(@Nullable @Nullable TextConfig line1, @Nullable @Nullable TextConfig line2, int fadeIn, int stay, int fadeOut)
public int getFadeIn()
public int getFadeOut()
public int getStay()
public boolean isStandardTime()
@Nullable public @Nullable TextConfig getLine1()
@Nullable public @Nullable TextConfig getLine2()
public void send(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders, @Nullable ConfiguredTitle.TitleConsumer sendConsumer)
public void send(@NotNull @NotNull org.bukkit.entity.Player player, @Range(from=0L,to=2147483647L) int fadeIn, @Range(from=0L,to=2147483647L) int stay, @Range(from=0L,to=2147483647L) int fadeOut, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders, @Nullable ConfiguredTitle.TitleConsumer sendConsumer)
@NotNull protected @NotNull java.lang.String parseLine(@Nullable @Nullable TextConfig text, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders)
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.Object> serialize()
@Nullable public static @Nullable TitleConfig deserialize(@NotNull @NotNull cc.carm.lib.configuration.core.source.ConfigurationWrapper<?> section)
Copyright © 2024. All rights reserved.