Class Util

java.lang.Object
de.jvstvshd.necrify.common.util.Util

public class Util extends Object
  • Method Details

    • getUuid

      public static UUID getUuid(de.chojo.sadu.mapper.wrapper.Row row, int index) throws SQLException
      Throws:
      SQLException
    • parseUuid

      public static UUID parseUuid(String uuidString)
    • executeAsync

      public static <T> CompletableFuture<T> executeAsync(Callable<T> task, Executor service)
    • 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

      public static Optional<UUID> fromString(String uuidString)
    • 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

      public static <T extends de.jvstvshd.necrify.api.punishment.TemporalPunishment> List<T> sortPunishments(List<T> list)