mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 05:02:25 +00:00
Fixed crash with tooltips.
This commit is contained in:
1 parent
864745e717
commit
2110caeb45
13 files changed
+58
-2
No files matched your search
@@ -59,4 +59,8 @@ public abstract class BlockEio extends Block {
|
||||
blockIcon = iIconRegister.registerIcon("enderio:" + name);
|
||||
}
|
||||
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -137,4 +137,11 @@ public class BlockEnderIO extends BlockEio implements IResourceTooltipProvider {
|
||||
selectedOverlayIcon = iIconRegister.registerIcon("enderio:enderIOSelected");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -81,4 +81,9 @@ public class BlockFarmStation extends AbstractMachineBlock<TileFarmStation> {
|
||||
public void randomDisplayTick(World world, int x, int y, int z, Random rand) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,6 +2,6 @@ package crazypants.enderio.gui;
|
||||
|
||||
public interface IResourceTooltipProvider {
|
||||
|
||||
String getUnlocalizedName();
|
||||
String getUnlocalizedNameForTooltip();
|
||||
|
||||
}
|
||||
@@ -105,7 +105,7 @@ public class TooltipAddera {
|
||||
|
||||
public static void addInformation(IResourceTooltipProvider item, ItemTooltipEvent evt) {
|
||||
if(showAdvancedTooltips()) {
|
||||
addDetailedTooltipFromResources(evt.toolTip, item.getUnlocalizedName());
|
||||
addDetailedTooltipFromResources(evt.toolTip, item.getUnlocalizedNameForTooltip());
|
||||
} else {
|
||||
addShowDetailsTooltip(evt.toolTip);
|
||||
}
|
||||
|
||||
@@ -87,4 +87,9 @@ public class ItemYetaWrench extends Item implements IToolWrench, IResourceToolti
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -319,4 +319,9 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -291,4 +291,9 @@ public class BlockHyperCube extends BlockEio implements IGuiHandler, IResourceTo
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -198,4 +198,9 @@ public class BlockElectricLight extends BlockEio implements IResourceTooltipProv
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -89,4 +89,9 @@ public class ItemConduitProbe extends Item implements IResourceTooltipProvider {
|
||||
itemIcon = IIconRegister.registerIcon("enderio:mJReader");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -293,4 +293,9 @@ public class BlockReservoir extends BlockContainer implements IResourceTooltipPr
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -107,4 +107,9 @@ public class BlockSolarPanel extends BlockEio implements IResourceTooltipProvide
|
||||
super.addCollisionBoxesToList(par1World, par2, par3, par4, par5AxisAlignedBB, par6List, par7Entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -257,4 +257,9 @@ public class ItemTravelStaff extends ItemEnergyContainer implements IEnergyConta
|
||||
par3List.add(is);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedNameForTooltip() {
|
||||
return getUnlocalizedName();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user