net.minecraftforge.fml.common.Mod.name()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中net.minecraftforge.fml.common.Mod.name()方法的一些代码示例,展示了Mod.name()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mod.name()方法的具体详情如下:
包路径:net.minecraftforge.fml.common.Mod
类名称:Mod
方法名:name

Mod.name介绍

暂无

代码示例

代码示例来源:origin: RS485/LogisticsPipes

@Override
public String getName() {
  return LogisticsPipes.class.getAnnotation(Mod.class).name();
}

代码示例来源:origin: iLexiconn/LLibrary

LLibrary.LOGGER.warn("Failed to load update container for mod " + annotation.name() + " (" + annotation.modid() + ")!");
LLibrary.LOGGER.warn("Failed to load update container for mod " + annotation.name() + " (" + annotation.modid() + ")!");

代码示例来源:origin: iLexiconn/LLibrary

@Override
public void initElements() {
  this.addElement(new ButtonElement<>(this, "<", 0, 0, 30, 20, button -> {
    this.mc.displayGuiScreen(this.parent);
    return true;
  }).withColorScheme(this.getReturnButtonColorScheme()));
  this.addElement(new LabelElement<>(this, this.parentName, 35, 6));
  this.addElement(new LabelElement<>(this, this.mod.name().toUpperCase() + " SETTINGS", 35, 26));
  ListElement<ConfigGUI> categoryList = (ListElement<ConfigGUI>) new ListElement<>(this, 0, 40, 120, this.height - 40, this.categories.stream().map(ConfigCategory::getName).collect(Collectors.toList()), 20, list -> {
    this.selectedCategory = this.categories.get(list.getSelectedIndex());
    this.propertyElements.values().forEach(this::removeElement);
    this.propertyElements.clear();
    return true;
  }).withPersistence(true).withColorScheme(this.getSidebarColorScheme());
  categoryList.setSelectedIndex(0);
  this.selectedCategory = this.categories.get(0);
  this.addElement(categoryList);
  this.propertyElements.clear();
}

相关文章