Package net.minecraftforge.fml.loading
Class LanguageLoadingProvider
java.lang.Object
net.minecraftforge.fml.loading.LanguageLoadingProvider
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.maven.artifact.versioning.DefaultArtifactVersion
private static final org.slf4j.Logger
private final List
<net.minecraftforge.forgespi.language.IModLanguageProvider> private final Map
<String, LanguageLoadingProvider.Wrapper> private final ServiceLoader
<net.minecraftforge.forgespi.language.IModLanguageProvider> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalLanguages
(List<ModFile> modFiles) Deprecated, for removal: This API element is subject to removal in a future version.<T> Stream
<T> applyForEach
(Function<net.minecraftforge.forgespi.language.IModLanguageProvider, T> function) net.minecraftforge.forgespi.language.IModLanguageProvider
findLanguage
(ModFile mod, String language, org.apache.maven.artifact.versioning.VersionRange versionRange) void
private void
void
reload()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
serviceLoader
private final ServiceLoader<net.minecraftforge.forgespi.language.IModLanguageProvider> serviceLoader -
providers
-
providersByName
-
IN_DEV
private static final org.apache.maven.artifact.versioning.DefaultArtifactVersion IN_DEV
-
-
Constructor Details
-
LanguageLoadingProvider
LanguageLoadingProvider()
-
-
Method Details
-
forEach
-
applyForEach
-
reload
public void reload() -
addAdditionalLanguages
@Deprecated(forRemoval=true, since="1.20.2") public void addAdditionalLanguages(List<ModFile> modFiles) Deprecated, for removal: This API element is subject to removal in a future version.This doesn't actually do anything with the argument, so just call reload(). Not sure when cpw broke that. -
loadLanguageProviders
private void loadLanguageProviders() -
findLanguage
-