示例#1
0
  @Override
  public void addNames() {
    ModLoader.addLocalization("tile.UtilityVein.PhosphoriteOre.name", "Phosporite Ore");
    ModLoader.addLocalization("tile.UtilityVein.SulfurOre.name", "Sulfur Ore");
    ModLoader.addLocalization("tile.UtilityVein.SaltpeterOre.name", "Saltpeter Ore");
    ModLoader.addLocalization("tile.UtilityVein.MagnesiumOre.name", "Magnesium Ore");
    ModLoader.addLocalization("tile.UtilityVein.BitumenOre.name", "Bitumen Ore");
    ModLoader.addLocalization("tile.UtilityVein.PotashOre.name", "Potash Ore");

    ModLoader.addName(mod_Bitumen.bitumen, "Bitumen");
    ModLoader.addName(mod_Bitumen.tar, "Tar");
    ModLoader.addName(mod_Saltpeter.saltpeter, "Saltpeter");
    ModLoader.addName(mod_Potash.potash, "Potash");
    ModLoader.addName(mod_Potash.fertilizer, "Fertilizer");
    ModLoader.addName(mod_Magnesium.magnesium, "Magnesium");
    ModLoader.addName(mod_Phosphorite.phosphorite, "Phosphorite");
    ModLoader.addName(mod_Phosphorite.phosphorus, "Phosphorous");
    ModLoader.addName(mod_Sulfur.sulfur, "Sulfur");
  }
示例#2
0
 /**
  * Add localization for the specified string
  *
  * @param key
  * @param value
  */
 public static void addLocalization(String key, String value) {
   addLocalization(key, "en_US", value);
 }
示例#3
0
 /**
  * Not used on the server.
  *
  * @param achievement
  * @param name
  * @param description
  */
 public static void addAchievementDesc(Achievement achievement, String name, String description) {
   String achName = achievement.getName();
   addLocalization(achName, name);
   addLocalization(achName + ".desc", description);
 }