public record Button(@NotNull NamespacedId id,
byte slot,
@NotNull ItemStack item,
@NotNull BiConsumer<SkyblockPlayer, InventoryGUI> task
) implements NamespacedObject {```
basically I have this record now I wanted to do something like
```java
public static final Button CLOSE_BUTTON = new Button(
new NamespacedId("common", "close"),
ItemStack.of(Material.BARRIER),
(player, inventory) -> {}
);```
but it won't let me
#Problem with using BiConsumer as argument
1 messages · Page 1 of 1 (latest)