public static interface LanguageEntry.Builder
LanguageEntry
instances, since it has a lot of parameters, we create
a builder for ease its creation| Modifier and Type | Method and Description |
|---|---|
@NotNull LanguageEntry.Builder |
bidirectional(boolean bidirectional)
Sets if this language is bidirectional, in
that case, it must be read from right to left
|
@NotNull LanguageEntry |
build()
Finishes building the
LanguageEntry instance,
this method may fail if values were not correctly
provided |
@NotNull LanguageEntry.Builder |
name(@NotNull java.lang.String name)
Sets the language full name, shown in the
Minecraft language menu
|
@NotNull LanguageEntry.Builder |
region(@NotNull java.lang.String region)
Sets the region or country of this language,
shown in the default Minecraft client language
menu
|
@Contract(value="_ -> this") @NotNull @NotNull LanguageEntry.Builder name(@NotNull @NotNull java.lang.String name)
name - The language full name@Contract(value="_ -> this") @NotNull @NotNull LanguageEntry.Builder region(@NotNull @NotNull java.lang.String region)
region - The language region or country@Contract(value="_ -> this") @NotNull @NotNull LanguageEntry.Builder bidirectional(boolean bidirectional)
bidirectional - True if this language is bidirectional@Contract(value="-> new") @NotNull @NotNull LanguageEntry build()
LanguageEntry instance,
this method may fail if values were not correctly
provided