Class SwitchGrid.SwitchBuilder
java.lang.Object
net.minecraft.client.gui.screens.worldselection.SwitchGrid.SwitchBuilder
- Enclosing class:
SwitchGrid
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private Component
private BooleanSupplier
private final Component
private final BooleanSupplier
-
Constructor Summary
ConstructorDescriptionSwitchBuilder
(Component p_268282_, BooleanSupplier p_268294_, Consumer<Boolean> p_268132_, int p_268250_) -
Method Summary
Modifier and TypeMethodDescription(package private) SwitchGrid.LabeledSwitch
build
(SwitchGrid.Builder p_270513_, GridLayout p_271004_, int p_270506_) withIsActiveCondition
(BooleanSupplier p_267966_)
-
Field Details
-
label
-
stateSupplier
-
onClicked
-
info
-
isActiveCondition
-
buttonWidth
private final int buttonWidth
-
-
Constructor Details
-
SwitchBuilder
SwitchBuilder(Component p_268282_, BooleanSupplier p_268294_, Consumer<Boolean> p_268132_, int p_268250_)
-
-
Method Details
-
withIsActiveCondition
-
withInfo
-
build
-