语言API
语言通用模块(LangUtils)
注意:该模块返回的所有字符串为UTF8格式,用于兼容多国语言。
函数
返回值
描述
LangUtils.ModText(string key)
string
根据key值返回Mod在当前语言的自定义文本。
LangUtils.BuffName(int buffID)
string
根据BUFF的ID返回BUFF在当前语言的名称。
LangUtils.EnchantmentName(int enchantmentID)
string
根据附魔的ID返回附魔在当前语言的名称。
LangUtils.NpcName(int npcID)
string
根据NPC的ID返回NPC在当前语言的名称。
Last updated
Was this helpful?