Skip to content

CrTI18n

youyihj edited this page Dec 30, 2020 · 5 revisions

CrTI18n

CrTI18n exposes net.minecraft.util.text.translation Java Class to ZenScript.

Importing the package

It might be required to import the class to avoid errors.

import mods.zenutils.I18n;

ZenMethods

import mods.zenutils.I18n;

// check if have specific key.
I18n.hasKey(String key);

// Translates the given string and then formats it. Equivilant to String.format(translate(key), parameters).
I18n.format(String format, Object... args);

// Equivilant to game.localize
I18n.format(String key);
Clone this wiki locally