diff --git a/src/main/java/eu/pb4/sgui/api/elements/GuiElementBuilder.java b/src/main/java/eu/pb4/sgui/api/elements/GuiElementBuilder.java index 258318f..836f9c1 100644 --- a/src/main/java/eu/pb4/sgui/api/elements/GuiElementBuilder.java +++ b/src/main/java/eu/pb4/sgui/api/elements/GuiElementBuilder.java @@ -343,9 +343,15 @@ public GuiElementBuilder setSkullOwner(String value, @Nullable String signature, this.itemStack.set(DataComponentTypes.PROFILE, new ProfileComponent(Optional.empty(), Optional.ofNullable(uuid), map)); return this; } + + @Override + public GuiElementBuilder setCallback(GuiElement.ClickCallback callback) { + this.callback = callback; + return this; + } @Override - public GuiElementBuilder setCallback(GuiElementInterface.ClickCallback callback) { + public GuiElementBuilder setCallback(GuiElementInterface.ItemClickCallback callback) { this.callback = callback; return this; }