Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.assassin.item;
- import com.assassin.Main.MainRegistry;
- import net.minecraft.entity.Entity;
- import net.minecraft.item.ItemArmor;
- import net.minecraft.item.ItemArmor.ArmorMaterial;
- import net.minecraft.item.ItemStack;
- public class HSteelArmor extends MainRegistry {
- public HSteelArmor(ArmorMaterial p_i45325_1_, int p_i45325_2_, int p_i45325_3_) {
- super();
- // TODO Auto-generated constructor stub
- }
- public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) {
- if (stack.getItem()==MainRegistry.HSteelHelmet || stack.getItem()==MainRegistry.HSteelChestplate || stack.getItem()==MainRegistry.HSteelBoots) {
- return "morematerials:textures/models/armor/hsteel_layer_1.png";
- }
- else if(stack.getItem()==MainRegistry.HSteelLeggings) {
- return "morematerials:textures/models/armor/" +"hsteel_layer_2.png";
- }
- else {
- return null;}
- }
- protected void setTextureName(String string) {
- // TODO Auto-generated method stub
- }
- protected void setUnlocalizedName(String string) {
- // TODO Auto-generated method stub
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment