Example #1
0
  public String getName() {
    if (this.hasCustomName()) {
      return this.getCustomName();
    } else {
      int i = this.getType();

      switch (i) {
        case 0:
        default:
          return LocaleI18n.get("entity.horse.name");

        case 1:
          return LocaleI18n.get("entity.donkey.name");

        case 2:
          return LocaleI18n.get("entity.mule.name");

        case 3:
          return LocaleI18n.get("entity.zombiehorse.name");

        case 4:
          return LocaleI18n.get("entity.skeletonhorse.name");
      }
    }
  }
Example #2
0
  public String getName() {
    if (this.hasCustomName()) {
      return this.getCustomName();
    } else {
      String s = EntityTypes.b(this);

      if (s == null) {
        s = "generic";
      }

      return LocaleI18n.get("entity." + s + ".name");
    }
  }
Example #3
0
 public String k() {
   return LocaleI18n.a(this.b() + ".name");
 }
Example #4
0
 public String getName() {
   return this.hasCustomName()
       ? this.getCustomName()
       : (this.isTamed() ? LocaleI18n.get("entity.Cat.name") : super.getName());
 }
Example #5
0
 public String n(ItemStack itemstack) {
   return ("" + LocaleI18n.get(this.k(itemstack) + ".name")).trim();
 }
Example #6
0
  public String k(ItemStack itemstack) {
    String s = this.a(itemstack);

    return s == null ? "" : LocaleI18n.get(s);
  }
Example #7
0
 public String m() {
   return LocaleI18n.a(this.n() + ".name");
 }
Example #8
0
 public String getName() {
   return LocaleI18n.get("tile.skull.skeleton.name");
 }
 public String getLocalizedName(ItemStack var1) {
   return LocaleI18n.get(i(var1).a());
 }