Re-add and mark deprecated the old signature for ForgeHooksClient.getArmorTexture.
This commit is contained in:
parent
1490479bd6
commit
77f6d9eeab
1 changed files with 12 additions and 0 deletions
|
@ -44,6 +44,18 @@ public class ForgeHooksClient
|
||||||
return FMLClientHandler.instance().getClient().renderEngine;
|
return FMLClientHandler.instance().getClient().renderEngine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated //Deprecated in 1.5.1, move to the more detailed one below.
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
|
public static String getArmorTexture(ItemStack armor, String _default)
|
||||||
|
{
|
||||||
|
String result = null;
|
||||||
|
if (armor.getItem() instanceof IArmorTextureProvider)
|
||||||
|
{
|
||||||
|
result = ((IArmorTextureProvider)armor.getItem()).getArmorTextureFile(armor);
|
||||||
|
}
|
||||||
|
return result != null ? result : _default;
|
||||||
|
}
|
||||||
|
|
||||||
public static String getArmorTexture(Entity entity, ItemStack armor, String _default, int slot, int layer)
|
public static String getArmorTexture(Entity entity, ItemStack armor, String _default, int slot, int layer)
|
||||||
{
|
{
|
||||||
String result = armor.getItem().getArmorTexture(armor, entity, slot, layer);
|
String result = armor.getItem().getArmorTexture(armor, entity, slot, layer);
|
||||||
|
|
Loading…
Reference in a new issue