Package de.jvstvshd.necrify.common.util
Class Util
java.lang.Object
de.jvstvshd.necrify.common.util.Util
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancircularSuccessionChain(de.jvstvshd.necrify.api.punishment.Punishment base, de.jvstvshd.necrify.api.punishment.Punishment successor) static net.kyori.adventure.text.TextComponentcopyComponent(String text, de.jvstvshd.necrify.api.message.MessageProvider provider) static net.kyori.adventure.text.ComponentcopyComponent(net.kyori.adventure.text.Component base, String copy, de.jvstvshd.necrify.api.message.MessageProvider provider) static <T> CompletableFuture<T> executeAsync(Callable<T> task, Executor service) fromString(String uuidString) static <T extends de.jvstvshd.necrify.api.punishment.TemporalPunishment>
TgetLongestPunishment(List<T> list) static UUIDgetUuid(de.chojo.sadu.mapper.wrapper.Row row, int index) static UUIDstatic <T extends de.jvstvshd.necrify.api.punishment.TemporalPunishment>
List<T> sortPunishments(List<T> list) static @Nullable de.jvstvshd.necrify.api.punishment.PunishmentsuccessorOrNull(de.jvstvshd.necrify.api.punishment.Punishment punishment)
-
Method Details
-
getUuid
- Throws:
SQLException
-
parseUuid
-
executeAsync
-
copyComponent
public static net.kyori.adventure.text.TextComponent copyComponent(String text, de.jvstvshd.necrify.api.message.MessageProvider provider) -
copyComponent
public static net.kyori.adventure.text.Component copyComponent(net.kyori.adventure.text.Component base, String copy, de.jvstvshd.necrify.api.message.MessageProvider provider) -
fromString
-
circularSuccessionChain
public static boolean circularSuccessionChain(de.jvstvshd.necrify.api.punishment.Punishment base, de.jvstvshd.necrify.api.punishment.Punishment successor) -
successorOrNull
@Nullable public static @Nullable de.jvstvshd.necrify.api.punishment.Punishment successorOrNull(de.jvstvshd.necrify.api.punishment.Punishment punishment) -
getLongestPunishment
public static <T extends de.jvstvshd.necrify.api.punishment.TemporalPunishment> T getLongestPunishment(List<T> list) -
sortPunishments
-