From 61c2a553987ac13d281706e7f4ab09a423c0f07d Mon Sep 17 00:00:00 2001 From: Snabeldier <79211348+Snabeldier@users.noreply.github.com> Date: Sat, 14 Sep 2024 18:21:47 +0200 Subject: [PATCH] add --- src/main/java/minevalley/smart/api/App.java | 3 ++- src/main/java/minevalley/smart/api/Session.java | 1 + src/main/java/minevalley/smart/api/Smart.java | 1 + src/main/java/minevalley/smart/api/SmartApp.java | 1 + src/main/java/minevalley/smart/api/utils/window/Window.java | 1 + .../java/minevalley/smart/api/utils/window/WindowBuilder.java | 1 + .../java/minevalley/smart/api/utils/window/WindowItem.java | 1 + 7 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/minevalley/smart/api/App.java b/src/main/java/minevalley/smart/api/App.java index 9a4fa70..865b647 100644 --- a/src/main/java/minevalley/smart/api/App.java +++ b/src/main/java/minevalley/smart/api/App.java @@ -5,8 +5,9 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +@SuppressWarnings("unused") public @interface App { /** diff --git a/src/main/java/minevalley/smart/api/Session.java b/src/main/java/minevalley/smart/api/Session.java index 6ff17ef..ed4c719 100644 --- a/src/main/java/minevalley/smart/api/Session.java +++ b/src/main/java/minevalley/smart/api/Session.java @@ -3,6 +3,7 @@ import minevalley.core.api.users.OnlineUser; import minevalley.smart.api.utils.window.Window; +@SuppressWarnings("unused") public interface Session { OnlineUser getUser(); diff --git a/src/main/java/minevalley/smart/api/Smart.java b/src/main/java/minevalley/smart/api/Smart.java index 8d0123c..847a8a5 100644 --- a/src/main/java/minevalley/smart/api/Smart.java +++ b/src/main/java/minevalley/smart/api/Smart.java @@ -15,6 +15,7 @@ import java.util.function.BiConsumer; import java.util.function.Consumer; +@SuppressWarnings("unused") public final class Smart { @Setter diff --git a/src/main/java/minevalley/smart/api/SmartApp.java b/src/main/java/minevalley/smart/api/SmartApp.java index ed4fb39..f567224 100644 --- a/src/main/java/minevalley/smart/api/SmartApp.java +++ b/src/main/java/minevalley/smart/api/SmartApp.java @@ -20,5 +20,6 @@ public SmartApp() { * * @param session new created session */ + @SuppressWarnings("unused") public abstract void onSessionCreate(Session session); } \ No newline at end of file diff --git a/src/main/java/minevalley/smart/api/utils/window/Window.java b/src/main/java/minevalley/smart/api/utils/window/Window.java index ba1d1f3..8ce4a6b 100644 --- a/src/main/java/minevalley/smart/api/utils/window/Window.java +++ b/src/main/java/minevalley/smart/api/utils/window/Window.java @@ -9,6 +9,7 @@ import java.util.function.BiConsumer; import java.util.function.Consumer; +@SuppressWarnings("unused") public interface Window { List getViewingUsers(); diff --git a/src/main/java/minevalley/smart/api/utils/window/WindowBuilder.java b/src/main/java/minevalley/smart/api/utils/window/WindowBuilder.java index 2656658..548f4a7 100644 --- a/src/main/java/minevalley/smart/api/utils/window/WindowBuilder.java +++ b/src/main/java/minevalley/smart/api/utils/window/WindowBuilder.java @@ -6,6 +6,7 @@ import java.util.function.Consumer; +@SuppressWarnings("unused") public interface WindowBuilder { WindowBuilder setTitle(String title); diff --git a/src/main/java/minevalley/smart/api/utils/window/WindowItem.java b/src/main/java/minevalley/smart/api/utils/window/WindowItem.java index 5ade0eb..814f222 100644 --- a/src/main/java/minevalley/smart/api/utils/window/WindowItem.java +++ b/src/main/java/minevalley/smart/api/utils/window/WindowItem.java @@ -2,6 +2,7 @@ import org.bukkit.inventory.ItemStack; +@SuppressWarnings("unused") public interface WindowItem { ItemStack getItemStack();