Skip to content

Commit

Permalink
remove accept()
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Jan 19, 2025
1 parent 9632a85 commit 1dba200
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/main/java/minevalley/core/api/gui/FillItem.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package minevalley.core.api.gui;

import minevalley.core.api.Core;
import minevalley.core.api.users.OnlineUser;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.inventory.ItemStack;

import javax.annotation.Nonnull;
Expand All @@ -15,11 +11,4 @@ public record FillItem(@Nonnull ItemStack itemStack, @Nullable Consumer<GuiItemC
public FillItem {
if (itemStack == null) throw new IllegalArgumentException("ItemStack cannot be null");
}

@SuppressWarnings("unused")
public void accept(final @Nonnull InventoryClickEvent event) {
if (!(event.getWhoClicked() instanceof Player player)) return;
final OnlineUser user = Core.getOnlineUser(player);
if (callback != null) callback.accept(new GuiItemClick(user, event.getClick(), event.getAction()));
}
}

0 comments on commit 1dba200

Please sign in to comment.