Class SwitchGrid.Builder
java.lang.Object
net.minecraft.client.gui.screens.worldselection.SwitchGrid.Builder
- Enclosing class:
SwitchGrid
-
Field Summary
Modifier and TypeFieldDescription(package private) Optional<SwitchGrid.InfoUnderneathSettings>
(package private) int
(package private) int
(package private) int
private final List<SwitchGrid.SwitchBuilder>
(package private) final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSwitch
(Component p_268004_, BooleanSupplier p_268017_, Consumer<Boolean> p_268320_) build
(Consumer<LayoutElement> p_268301_) (package private) void
withInfoUnderneath
(int p_270730_, boolean p_270594_) withPaddingLeft
(int p_267998_) withRowSpacing
(int p_270750_)
-
Field Details
-
width
final int width -
switchBuilders
-
paddingLeft
int paddingLeft -
rowSpacing
int rowSpacing -
rowCount
int rowCount -
infoUnderneath
Optional<SwitchGrid.InfoUnderneathSettings> infoUnderneath
-
-
Constructor Details
-
Builder
public Builder(int p_267987_)
-
-
Method Details
-
increaseRow
void increaseRow() -
addSwitch
public SwitchGrid.SwitchBuilder addSwitch(Component p_268004_, BooleanSupplier p_268017_, Consumer<Boolean> p_268320_) -
withPaddingLeft
-
withRowSpacing
-
build
-
withInfoUnderneath
-