You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//FIXME: Javadocs unclear. says would return true, but return type isn't a boolean
207
215
/**
208
216
* @return true if any elements overlap
209
217
*/
218
+
@Nullable
210
219
publicElementfindOverlap()
211
220
{
212
221
returnelements.stream().filter(Element::isVisible).filter(a -> elements.stream().filter(Element::isVisible).anyMatch(b -> a != b && a.overlaps(b))).findFirst().orElse(null);
@@ -217,7 +226,7 @@ public Element findOverlap()
217
226
*
218
227
* @param player the player that closed the menu
219
228
*/
220
-
publicvoidclose(Playerplayer)
229
+
publicvoidclose(@NonnullPlayerplayer)
221
230
{
222
231
if(viewers.remove(player))
223
232
{
@@ -228,7 +237,7 @@ public void close(Player player)
228
237
unregister();
229
238
}
230
239
231
-
voidonClosed(Playerplayer)
240
+
voidonClosed(@NonnullPlayerplayer)
232
241
{
233
242
if(viewers.remove(player))
234
243
ChatMenuAPI.getChatIntercept(player).resume();
@@ -237,6 +246,7 @@ void onClosed(Player player)
237
246
/**
238
247
* @return the command used to interact with this menu
239
248
*/
249
+
@Nonnull
240
250
publicStringgetCommand()
241
251
{
242
252
if(!isRegistered())
@@ -248,7 +258,8 @@ public String getCommand()
248
258
* @param element the element to interact with
249
259
* @return the command used to interact with the provided element
0 commit comments