public static class DropdownComponentImpl.Builder extends Object implements DropdownComponent.Builder
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DropdownComponentImpl |
build() |
DropdownComponentImpl.Builder |
defaultOption(int defaultOption) |
DropdownComponentImpl.Builder |
option(String option) |
DropdownComponentImpl.Builder |
option(String option,
boolean isDefault) |
DropdownComponentImpl.Builder |
text(String text) |
DropdownComponentImpl |
translateAndBuild(Function<String,String> translator) |
public DropdownComponentImpl.Builder text(String text)
text in interface DropdownComponent.Builderpublic DropdownComponentImpl.Builder option(String option, boolean isDefault)
option in interface DropdownComponent.Builderpublic DropdownComponentImpl.Builder option(String option)
option in interface DropdownComponent.Builderpublic DropdownComponentImpl.Builder defaultOption(int defaultOption)
defaultOption in interface DropdownComponent.Builderpublic DropdownComponentImpl build()
build in interface DropdownComponent.Builderpublic DropdownComponentImpl translateAndBuild(Function<String,String> translator)
translateAndBuild in interface DropdownComponent.BuilderCopyright © 2020 GeyserMC. All rights reserved.