本文整理汇总了Java中codechicken.nei.api.IConfigureNEI.getVersion方法的典型用法代码示例。如果您正苦于以下问题:Java IConfigureNEI.getVersion方法的具体用法?Java IConfigureNEI.getVersion怎么用?Java IConfigureNEI.getVersion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类codechicken.nei.api.IConfigureNEI
的用法示例。
在下文中一共展示了IConfigureNEI.getVersion方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getMetadata
import codechicken.nei.api.IConfigureNEI; //导入方法依赖的package包/类
@Override
public ModMetadata getMetadata() {
ModMetadata meta = super.getMetadata();
meta.description = "Recipe Viewer, Inventory Manager, Item Spawner, Cheats and more.\n"+ EnumChatFormatting.WHITE+"\n";
if (plugins.size() == 0) {
meta.description += EnumChatFormatting.RED+"No installed plugins.";
} else {
meta.description += EnumChatFormatting.GREEN+"Installed plugins: ";
for (int i = 0; i < plugins.size(); i++) {
if (i > 0)
meta.description += ", ";
IConfigureNEI plugin = plugins.get(i);
meta.description += plugin.getName() + " " + plugin.getVersion();
}
meta.description += ".";
}
return meta;
}
示例2: getMetadata
import codechicken.nei.api.IConfigureNEI; //导入方法依赖的package包/类
@Override
public ModMetadata getMetadata() {
String s_plugins = "";
if (plugins.size() == 0) {
s_plugins += EnumChatFormatting.RED+"No installed plugins.";
} else {
s_plugins += EnumChatFormatting.GREEN+"Installed plugins: ";
for (int i = 0; i < plugins.size(); i++) {
if (i > 0)
s_plugins += ", ";
IConfigureNEI plugin = plugins.get(i);
s_plugins += plugin.getName() + " " + plugin.getVersion();
}
s_plugins += ".";
}
ModMetadata meta = super.getMetadata();
meta.description = description.replace("<plugins>", s_plugins);
return meta;
}