How to create the custom checkbox with tooltip in minecraft mod fabric 1.21.1 #4042
Replies: 1 comment
-
In the latest Fabric you can no longer extend the CheckboxWidget myCheckbox = CheckboxWidget.builder(Text.of("Enable Feature"), textRenderer)
.pos(10, 10)
.callback((checkbox, value) -> { /* code to set the new value */ })
.build() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
After update from 1.20.1 to 1.21.1 this java code does not work
errors: 'CheckboxWidget(int, int, int, net.minecraft.text.Text, net.minecraft.client.font.TextRenderer, boolean, net.minecraft.client.gui.widget.CheckboxWidget.Callback)' is not public in 'net.minecraft.client.gui.widget.CheckboxWidget'. Cannot be accessed from outside package.
'render(DrawContext, int, int, float)' cannot override 'render(DrawContext, int, int, float)' in 'net.minecraft.client.gui.widget.ClickableWidget'; overridden method is final.
how to fix it?
Beta Was this translation helpful? Give feedback.
All reactions