Skip to content

Commit 3c87b4e

Browse files
committed
fixed getItems() casting
1 parent 407dc58 commit 3c87b4e

File tree

1 file changed

+3
-7
lines changed
  • src/main/java/me/touchie771/minecraftGUI/api

1 file changed

+3
-7
lines changed

src/main/java/me/touchie771/minecraftGUI/api/Menu.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
import org.jetbrains.annotations.NotNull;
1212
import org.jetbrains.annotations.Nullable;
1313

14-
import java.util.Collections;
15-
import java.util.HashMap;
16-
import java.util.HashSet;
17-
import java.util.List;
18-
import java.util.Map;
14+
import java.util.*;
1915
import java.util.function.Consumer;
2016

2117
/**
@@ -144,8 +140,8 @@ public Inventory getInventory() {
144140
*
145141
* @return an unmodifiable set of SlotItem instances in this menu
146142
*/
147-
public HashSet<SlotItem> getItems() {
148-
return (HashSet<SlotItem>) Collections.unmodifiableSet(this.items);
143+
public Set<SlotItem> getItems() {
144+
return Collections.unmodifiableSet(this.items);
149145
}
150146

151147
/**

0 commit comments

Comments
 (0)