A bulk of more patches converted, updated fml

This commit is contained in:
LexManos committed 2012-08-06 17:52:23 -07:00
1 parent 31a908b754
commit e58129ddd2
20 files changed
+1960 -5

No files matched your search

@@ -6,9 +6,11 @@ import java.util.TreeSet;
import org.lwjgl.opengl.GL11;
import net.minecraft.src.Block;
import net.minecraft.src.ItemStack;
import net.minecraft.src.ModLoader;
import net.minecraft.src.RenderBlocks;
import net.minecraft.src.Tessellator;
import net.minecraftforge.common.IArmorTextureProvider;
public class ForgeHooksClient
{
@@ -190,4 +192,13 @@ public class ForgeHooksClient
unbindTexture();
}
}
public static String getArmorTexture(ItemStack armor, String _default)
{
if (armor.getItem() instanceof IArmorTextureProvider)
{
return ((IArmorTextureProvider)armor.getItem()).getArmorTextureFile(armor);
}
return _default;
}
}