Make a generic method in order to remove tons of duplicate code that adds an item's owner and its active state to the tooltip.

This commit is contained in:
koolkrafter5 committed 2025-04-09 23:44:17 -04:00
1 parent ead07b752b
commit aad613b221
42 files changed
+74 -408

No files matched your search

@@ -60,12 +60,7 @@ public class LavaCrystal extends EnergyItems {
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.lavacrystal.desc1"));
par3List.add(StatCollector.translateToLocal("tooltip.lavacrystal.desc2"));
if (!(par1ItemStack.getTagCompound() == null)) {
par3List.add(
StatCollector.translateToLocal("tooltip.owner.currentowner") + " "
+ par1ItemStack.getTagCompound().getString("ownerName"));
}
addBindingInformation(par1ItemStack, par3List);
}
public boolean hasEnoughEssence(ItemStack itemStack) {