Improve tooltip
Now the metaitems can automatically seperate its tooltip to multiple lines with "////".
This commit is contained in:
parent
3b39210348
commit
78e03914a3
1 changed files with 5 additions and 3 deletions
|
@ -189,8 +189,10 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item implements ISpeci
|
|||
|
||||
@Override
|
||||
public final void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H) {
|
||||
String tKey = getUnlocalizedName(aStack) + ".tooltip", tString = GT_LanguageManager.getTranslation(tKey);
|
||||
if (GT_Utility.isStringValid(tString) && !tKey.equals(tString)) aList.add(tString);
|
||||
String tKey = getUnlocalizedName(aStack) + ".tooltip";
|
||||
String[] tStrings = GT_LanguageManager.getTranslation(tKey).split("////");
|
||||
for (String tString : tStrings)
|
||||
if (GT_Utility.isStringValid(tString) && !tKey.equals(tString)) aList.add(tString);
|
||||
|
||||
Long[]
|
||||
tStats = getElectricStats(aStack);
|
||||
|
@ -607,4 +609,4 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item implements ISpeci
|
|||
public boolean getIsRepairable(ItemStack aStack, ItemStack aMaterial) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue