diff --git a/src/main/java/me/touchie771/minecraftGUI/api/Menu.java b/src/main/java/me/touchie771/minecraftGUI/api/Menu.java index 2691561..447c345 100644 --- a/src/main/java/me/touchie771/minecraftGUI/api/Menu.java +++ b/src/main/java/me/touchie771/minecraftGUI/api/Menu.java @@ -11,11 +11,7 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.function.Consumer; /** @@ -144,8 +140,8 @@ public Inventory getInventory() { * * @return an unmodifiable set of SlotItem instances in this menu */ - public HashSet getItems() { - return (HashSet) Collections.unmodifiableSet(this.items); + public Set getItems() { + return Collections.unmodifiableSet(this.items); } /**