public interface LanguageEntry
extends net.kyori.examination.Examinable
Resource packs can create language files of the type .json in the folder assets/<namespace>/lang. Each file either replaces information from a file of the same name in the default or a lower pack, or it creates a new language as defined by pack.mcmeta
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LanguageEntry.Builder
Mutable and fluent-style builder for
LanguageEntry
instances, since it has a lot of parameters, we create
a builder for ease its creation |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_BIDIRECTIONAL |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bidirectional()
Determines if this language is bidirectional, in
that case, it must be read from right to left
|
static @NotNull LanguageEntry.Builder |
builder()
Deprecated.
Use
languageEntry() instead |
static @NotNull LanguageEntry.Builder |
languageEntry()
Static factory method for our builder implementation
|
static @NotNull LanguageEntry |
languageEntry(@NotNull java.lang.String name,
@NotNull java.lang.String region,
boolean bidirectional)
Creates a new Minecraft
LanguageEntry instance |
@NotNull java.lang.String |
name()
Returns the language full name, shown in the
Minecraft language menu
|
static @NotNull LanguageEntry |
of(@NotNull java.lang.String name,
@NotNull java.lang.String region,
boolean bidirectional)
Deprecated.
Use
languageEntry(String, String, boolean) instead |
@NotNull java.lang.String |
region()
Returns the region or country of this language,
shown in the default Minecraft client language
menu
|
static final boolean DEFAULT_BIDIRECTIONAL
@Contract(value="_, _, _ -> new") @NotNull static @NotNull LanguageEntry languageEntry(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.lang.String region, boolean bidirectional)
LanguageEntry instancename - The language full nameregion - The language region or countrybidirectional - True if read from right to left@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @Contract(value="_, _, _ -> new") @NotNull static @NotNull LanguageEntry of(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.lang.String region, boolean bidirectional)
languageEntry(String, String, boolean) insteadLanguageEntry instancename - The language full nameregion - The language region or countrybidirectional - True if read from right to left@Contract(value="-> new") @NotNull static @NotNull LanguageEntry.Builder languageEntry()
LanguageEntry instances@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @Contract(value="-> new") @NotNull static @NotNull LanguageEntry.Builder builder()
languageEntry() insteadLanguageEntry instances@NotNull @NotNull java.lang.String name()
@NotNull @NotNull java.lang.String region()
boolean bidirectional()