Skip to content

Commit d4da99a

Browse files
committed
Bug Patch: BiConsumer
1 parent 1f4633c commit d4da99a

File tree

10 files changed

+3
-4
lines changed

10 files changed

+3
-4
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-32.9 KB
Binary file not shown.
0 Bytes
Binary file not shown.

src/main/java/dev/arctic/interactivemenuapi/interfaces/IElement.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ public interface IElement<T> {
2525

2626
/**
2727
* Handles interactions with the element. The specific behavior of this method is defined by the
28-
* {@link BiConsumer} function provided to the {@link Element#setOnInteract(BiConsumer)} method.
28+
* BiConsumer function provided to the element.setOnInteract method.
2929
*
3030
* @param input The input to the interaction. The type of this parameter is defined by the API user
31-
* when they set the {@link BiConsumer} function. It's the responsibility of the API user
31+
* when they set the BiConsumer function. It's the responsibility of the API user
3232
* to ensure they're inputting and getting the right type of object.
3333
*/
34-
void onInteract(T input);
34+
void onInteract(Object input);
3535

3636
/**
3737
* Gets the parent menu of this element.

src/main/java/dev/arctic/interactivemenuapi/objects/Element.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.bukkit.util.Vector;
1313

1414
import java.util.function.BiConsumer;
15-
import java.util.function.Consumer;
1615

1716
@Getter
1817
@Setter

0 commit comments

Comments
 (0)