示例#1
0
 public String getItemStackDisplayName(ItemStack stack) {
   if (stack.getSubCompound("BlockEntityTag", false) != null) {
     String s = "item.shield.";
     EnumDyeColor enumdyecolor = ItemBanner.getBaseColor(stack);
     s = s + enumdyecolor.getUnlocalizedName() + ".name";
     return I18n.translateToLocal(s);
   } else {
     return I18n.translateToLocal("item.shield.name");
   }
 }
示例#2
0
 /** allows items to add custom lines of information to the mouseover description */
 @SideOnly(Side.CLIENT)
 public void addInformation(
     ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {
   ItemBanner.appendHoverTextFromTileEntityTag(stack, tooltip);
 }