mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
A bulk of more patches converted, updated fml
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user