Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package MiscBlocksAndItems.common;
- import net.minecraft.item.EnumArmorMaterial;
- import net.minecraft.item.ItemArmor;
- import net.minecraft.item.ItemStack;
- import net.minecraftforge.common.IArmorTextureProvider;
- public class ObsidianArmor extends ItemArmor implements IArmorTextureProvider {
- public ObsidianArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial,
- int par3, int par4) {
- super(par1, par2EnumArmorMaterial, par3, par4);
- }
- public String getTextureFile(){
- return "/MiscBlocksAndItems/Textures.png";
- }
- public String getArmorTextureFile(ItemStack itemstack) {
- if (itemstack.itemID == MiscBlocksAndItems.shiftedIndex || itemstack.itemID == MiscBlocksAndItems.ObsidianChestplate.shiftedIndex || itemstack.itemID == MiscBlocksAndItems.ObsidianBoots.shiftedIndex)
- {
- return "/MiscBlocksAndItems/Obsidian_1.png";
- }
- else if (itemstack.itemID == MiscBlocksAndItems.ObsidianLeggings.shiftedIndex)
- {
- return "/MiscBlcoksAndItems/Obsidian_2.png";
- }
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement