mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Changing some stuff to the tooltip CTRL thingy so that it looks nicer
This commit is contained in:
parent
f89c969b24
commit
8d59b01191
2 changed files with 7 additions and 7 deletions
|
@ -61,6 +61,11 @@ public class TooltipEvent{
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+baseName);
|
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+baseName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Metadata
|
||||||
|
int meta = event.itemStack.getItemDamage();
|
||||||
|
event.toolTip.add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".meta.desc")+":");
|
||||||
|
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+meta);
|
||||||
|
|
||||||
//Unlocalized Name
|
//Unlocalized Name
|
||||||
String metaName = event.itemStack.getItem().getUnlocalizedName(event.itemStack);
|
String metaName = event.itemStack.getItem().getUnlocalizedName(event.itemStack);
|
||||||
if(metaName != null && baseName != null && !metaName.equals(baseName)){
|
if(metaName != null && baseName != null && !metaName.equals(baseName)){
|
||||||
|
@ -68,11 +73,6 @@ public class TooltipEvent{
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+metaName);
|
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+metaName);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Metadata
|
|
||||||
int meta = event.itemStack.getItemDamage();
|
|
||||||
event.toolTip.add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".meta.desc")+":");
|
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+meta);
|
|
||||||
|
|
||||||
//NBT
|
//NBT
|
||||||
NBTTagCompound compound = event.itemStack.getTagCompound();
|
NBTTagCompound compound = event.itemStack.getTagCompound();
|
||||||
if(compound != null && !compound.hasNoTags()){
|
if(compound != null && !compound.hasNoTags()){
|
||||||
|
|
|
@ -425,8 +425,8 @@ tooltip.actuallyadditions.oredictName.desc=OreDictionary Entries
|
||||||
tooltip.actuallyadditions.noOredictNameAvail.desc=None
|
tooltip.actuallyadditions.noOredictNameAvail.desc=None
|
||||||
tooltip.actuallyadditions.codeName.desc=Code Name
|
tooltip.actuallyadditions.codeName.desc=Code Name
|
||||||
tooltip.actuallyadditions.baseUnlocName.desc=Item's Unlocalized Name
|
tooltip.actuallyadditions.baseUnlocName.desc=Item's Unlocalized Name
|
||||||
tooltip.actuallyadditions.meta.desc=Item's Metadata
|
tooltip.actuallyadditions.meta.desc=Metadata
|
||||||
tooltip.actuallyadditions.nbt.desc=Item's current NBT
|
tooltip.actuallyadditions.nbt.desc=NBT
|
||||||
tooltip.actuallyadditions.unlocName.desc=Meta's Unlocalized Name
|
tooltip.actuallyadditions.unlocName.desc=Meta's Unlocalized Name
|
||||||
tooltip.actuallyadditions.pressShift.desc=Press Shift
|
tooltip.actuallyadditions.pressShift.desc=Press Shift
|
||||||
tooltip.actuallyadditions.disablingInfo.desc=If you don't want this Information to appear, disable it in the Actually Additions Config!
|
tooltip.actuallyadditions.disablingInfo.desc=If you don't want this Information to appear, disable it in the Actually Additions Config!
|
||||||
|
|
Loading…
Reference in a new issue