refactor: Use native platform adventure implementations

This commit is contained in:
William committed 2023-12-20 16:29:48 +00:00
1 parent 189dac2729
commit 2e3c851d7f
12 files changed
+66 -29

No files matched your search

@@ -21,6 +21,7 @@ package net.william278.huskhomes;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.key.Key;
import net.william278.annotaml.Annotaml;
import net.william278.desertwell.util.ThrowingConsumer;
@@ -86,6 +87,16 @@ public interface HuskHomes extends Task.Supplier, EventDispatcher, SafetyResolve
@NotNull
List<OnlineUser> getOnlineUsers();
/**
* Get the adventure {@link Audience} for a given {@link UUID}.
*
* @param user The {@link UUID} of the user to get the {@link Audience} for.
* @return The {@link Audience} for the given {@link UUID}.
*/
@NotNull
Audience getAudience(@NotNull UUID user);
/**
* Finds a local {@link OnlineUser} by their name. Auto-completes partially typed names for the closest match
*