diff --git a/src/main/java/minevalley/core/api/gui/InventoryGui.java b/src/main/java/minevalley/core/api/gui/InventoryGui.java index fb5273c6..77de331f 100644 --- a/src/main/java/minevalley/core/api/gui/InventoryGui.java +++ b/src/main/java/minevalley/core/api/gui/InventoryGui.java @@ -179,6 +179,16 @@ default InventoryGui setItem(@Nonnegative int slot, @Nonnull InterfaceItem item, @Nonnull InventoryGui onClickSlot(@Nonnegative int slot, @Nonnull BiConsumer onClick) throws IllegalArgumentException; + /** + * Removes the callback for the specified slot. + * + * @param slot the slot to remove the callback for + * @return this GUI + * @throws IllegalArgumentException if the slot is out of bounds + */ + @Nonnull + InventoryGui removeSlotCallback(@Nonnegative int slot) throws IllegalArgumentException; + /** * Adds a callback to be called when this GUI is closed. *