#Problem with using BiConsumer as argument

1 messages · Page 1 of 1 (latest)

elfin ridge
#
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
violet tideBOT
#

<@&987246399047479336> please have a look, thanks.

elfin ridge
#

gives this erro

elfin ridge
#

i forgot a param.