ModsJava
[API] TAPI - The TranslatorAPI
Java mod listed for Minecraft 1.8–1.9. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotHere will be the description page soon.
This plugin is necessary for several (coming) plugins!
Important: This Plugin is only for developers!
Important: This Plugin does not translate plugins, which does not use this API.
general functions:
This plugin is necessary for several (coming) plugins!
Important: This Plugin is only for developers!
Important: This Plugin does not translate plugins, which does not use this API.
general functions:
Spoiler: Start
To use the TranslatorAPI, you should declare an
Translator Object first and register the plugin. Its recommended to save a copy of the default translations File.
e.g: the file is named: "translations.yml"
Information: The
register function could be called at every start, it will be ignored, if the plugin is already registered.
e.g: the file is named: "translations.yml"
Code (Java):
Translator t
;
onEnabled ( )
{
t = Translator. getTranslator ( ) ;
t. register ( this, YamlConfiguration. loadConfiguration ( new InputStreamReader ( this. getResource ( "translations.yml" ) ) ) ) ;
// ....
}
onEnabled ( )
{
t = Translator. getTranslator ( ) ;
t. register ( this, YamlConfiguration. loadConfiguration ( new InputStreamReader ( this. getResource ( "translations.yml" ) ) ) ) ;
// ....
}
Spoiler: getting translation
To get a saved translation for a keyword in the registered file, you should use this:
Code (Text):
String translation = t.getTranslation(this, "the_keyword");
Spoiler: all functions without description
- static Translator getTranslator()
- void register(Plugin p, Properties translations)
- void register(Plugin p, YamlConfiguration translations)
- String getTranslation(Plugin p, String key)
- String getTranslation(Plugin p, int ID)
- boolean hasTranslation(Plugin p, String key)
- boolean hasTranslation(Plugin p, int ID)
- int translations(Plugin p)
- List<String> translationKeys(Plugin p)
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
[API] TAPI - The TranslatorAPI is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9. Downloaded 148 times (via Spigot). Download it and open it directly in the game.