I18N多语言

翻译物品名字

该功能允许你将物品名字翻译进行翻译,用法如下

//需要进行翻译的物品
ItemStack theItem;

//将物品转换为名字
String result = LiuWeiI18n.format(theItem.getType().name().toUpperCase());

Last updated

Was this helpful?